[lld] r352074 - lld/coff: Rename two tests from .s to .test
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 24 10:30:33 PST 2019
Author: nico
Date: Thu Jan 24 10:30:33 2019
New Revision: 352074
URL: http://llvm.org/viewvc/llvm-project?rev=352074&view=rev
Log:
lld/coff: Rename two tests from .s to .test
Added:
lld/trunk/test/COFF/associative-comdat-empty.test
- copied unchanged from r352073, lld/trunk/test/COFF/associative-comdat-empty.s
lld/trunk/test/COFF/associative-comdat-order.test
- copied unchanged from r352073, lld/trunk/test/COFF/associative-comdat-order.s
Removed:
lld/trunk/test/COFF/associative-comdat-empty.s
lld/trunk/test/COFF/associative-comdat-order.s
Removed: lld/trunk/test/COFF/associative-comdat-empty.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/associative-comdat-empty.s?rev=352073&view=auto
==============================================================================
--- lld/trunk/test/COFF/associative-comdat-empty.s (original)
+++ lld/trunk/test/COFF/associative-comdat-empty.s (removed)
@@ -1,56 +0,0 @@
-# RUN: yaml2obj < %s > %t.obj
-# RUN: not lld-link /include:symbol /dll /noentry /nodefaultlib %t.obj /out:%t.exe 2>&1 | FileCheck %s
-
-# Tests an associative comdat being associated with an empty section errors.
-# CHECK: lld-link: error: {{.*}}: associative comdat .text$ac1 has invalid reference to section .text$nm
-# CHECK-NOT: lld-link: error:
-
---- !COFF
-header:
- Machine: IMAGE_FILE_MACHINE_AMD64
- Characteristics: [ ]
-sections:
- - Name: '.text$ac1'
- Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
- Alignment: 1
- SectionData: '01000000'
- - Name: '.text$nm'
- Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
- Alignment: 1
- SectionData: '01000000'
-symbols:
- - Name: '.text$ac1'
- Value: 0
- SectionNumber: 1
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
- SectionDefinition:
- Length: 4
- NumberOfRelocations: 0
- NumberOfLinenumbers: 0
- CheckSum: 3099354981
- Number: 2
- Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE
- - Name: '.text$nm'
- Value: 0
- SectionNumber: 2
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
- SectionDefinition:
- Length: 0
- NumberOfRelocations: 0
- NumberOfLinenumbers: 0
- CheckSum: 3099354981
- Number: 4
- Selection: IMAGE_COMDAT_SELECT_ANY
- - Name: assocsym
- Value: 0
- SectionNumber: 1
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
-...
-
-
Removed: lld/trunk/test/COFF/associative-comdat-order.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/associative-comdat-order.s?rev=352073&view=auto
==============================================================================
--- lld/trunk/test/COFF/associative-comdat-order.s (original)
+++ lld/trunk/test/COFF/associative-comdat-order.s (removed)
@@ -1,85 +0,0 @@
-# RUN: yaml2obj < %s > %t.obj
-# RUN: not lld-link /include:symbol /dll /noentry /nodefaultlib %t.obj /out:%t.exe 2>&1 | FileCheck %s
-
-# Tests that an associative comdat being associated with another
-# associated comdat later in the file produces an error.
-# CHECK: lld-link: error: {{.*}}: associative comdat .text$ac1 has invalid reference to section .text$ac2
-# CHECK-NOT: lld-link: error:
-
---- !COFF
-header:
- Machine: IMAGE_FILE_MACHINE_AMD64
- Characteristics: [ ]
-sections:
- - Name: '.text$ac1'
- Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
- Alignment: 1
- SectionData: '01000000'
- - Name: '.text$ac2'
- Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
- Alignment: 1
- SectionData: '01000000'
- - Name: '.text$nm'
- Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_LNK_COMDAT, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
- Alignment: 1
- SectionData: '01000000'
-symbols:
- - Name: '.text$ac1'
- Value: 0
- SectionNumber: 1
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
- SectionDefinition:
- Length: 4
- NumberOfRelocations: 0
- NumberOfLinenumbers: 0
- CheckSum: 3099354981
- Number: 2
- Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE
- - Name: '.text$ac2'
- Value: 0
- SectionNumber: 2
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
- SectionDefinition:
- Length: 4
- NumberOfRelocations: 0
- NumberOfLinenumbers: 0
- CheckSum: 3099354981
- Number: 3
- Selection: IMAGE_COMDAT_SELECT_ASSOCIATIVE
- - Name: '.text$nm'
- Value: 0
- SectionNumber: 3
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
- SectionDefinition:
- Length: 4
- NumberOfRelocations: 0
- NumberOfLinenumbers: 0
- CheckSum: 3099354981
- Number: 4
- Selection: IMAGE_COMDAT_SELECT_ANY
- - Name: symbol
- Value: 0
- SectionNumber: 3
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_EXTERNAL
- - Name: assocsym2
- Value: 0
- SectionNumber: 1
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
- - Name: assocsym
- Value: 0
- SectionNumber: 2
- SimpleType: IMAGE_SYM_TYPE_NULL
- ComplexType: IMAGE_SYM_DTYPE_NULL
- StorageClass: IMAGE_SYM_CLASS_STATIC
-...
-
More information about the llvm-commits
mailing list