1 // The purpose of this test is to verify that symbol aliases
2 // (@foo = alias <type> @bar) generate the correct entries in the symbol table.
3 // They should be identical except for the name.
5 // RUN: llvm-mc -filetype=obj -triple i686-pc-win32 %s | coff-dump.py | FileCheck %s
6 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-win32 %s | coff-dump.py | FileCheck %s
31 // CHECK: Name = {{_?}}foo
32 // CHECK-NEXT: Value = [[FOO_VALUE:.*$]]
33 // CHECK-NEXT: SectionNumber = [[FOO_SECTION_NUMBER:.*$]]
34 // CHECK-NEXT: SimpleType = [[FOO_SIMPLE_TYPE:.*$]]
35 // CHECK-NEXT: ComplexType = [[FOO_COMPLEX_TYPE:.*$]]
36 // CHECK-NEXT: StorageClass = [[FOO_STORAGE_CLASS:.*$]]
37 // CHECK-NEXT: NumberOfAuxSymbols = [[FOO_NUMBER_OF_AUX_SYMBOLS:.*$]]
39 // CHECK: Name = {{_?}}bar
40 // CHECK-NEXT: Value = [[BAR_VALUE:.*$]]
41 // CHECK-NEXT: SectionNumber = [[BAR_SECTION_NUMBER:.*$]]
42 // CHECK-NEXT: SimpleType = [[BAR_SIMPLE_TYPE:.*$]]
43 // CHECK-NEXT: ComplexType = [[BAR_COMPLEX_TYPE:.*$]]
44 // CHECK-NEXT: StorageClass = [[BAR_STORAGE_CLASS:.*$]]
45 // CHECK-NEXT: NumberOfAuxSymbols = [[BAR_NUMBER_OF_AUX_SYMBOLS:.*$]]
47 // CHECK: Name = {{_?}}foo_alias
48 // CHECK-NEXT: Value = [[FOO_VALUE]]
49 // CHECK-NEXT: SectionNumber = [[FOO_SECTION_NUMBER]]
50 // CHECK-NEXT: SimpleType = [[FOO_SIMPLE_TYPE]]
51 // CHECK-NEXT: ComplexType = [[FOO_COMPLEX_TYPE]]
52 // CHECK-NEXT: StorageClass = [[FOO_STORAGE_CLASS]]
53 // CHECK-NEXT: NumberOfAuxSymbols = [[FOO_NUMBER_OF_AUX_SYMBOLS]]
55 // CHECK: Name = {{_?}}bar_alias
56 // CHECK-NEXT: Value = [[BAR_VALUE]]
57 // CHECK-NEXT: SectionNumber = [[BAR_SECTION_NUMBER]]
58 // CHECK-NEXT: SimpleType = [[BAR_SIMPLE_TYPE]]
59 // CHECK-NEXT: ComplexType = [[BAR_COMPLEX_TYPE]]
60 // CHECK-NEXT: StorageClass = [[BAR_STORAGE_CLASS]]
61 // CHECK-NEXT: NumberOfAuxSymbols = [[BAR_NUMBER_OF_AUX_SYMBOLS]]