diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-29 22:10:07 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2013-01-29 22:10:07 +0000 |
commit | 0933134a304b47d3767aad202df9f0e09743da6d (patch) | |
tree | 4a2a1b7f42f208f258fdbd87544d96bea60c2b79 /test | |
parent | d8550495768d87f9b0d3219c40a5b15518ccacc8 (diff) |
[MC][COFF] Delay handling symbol aliases when writing
Fixes PR14447 and PR9034. Patch by Nico Rieck!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/COFF/symbol-alias.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/COFF/symbol-alias.s b/test/MC/COFF/symbol-alias.s index 03f07b2e56..4b1772ce71 100644 --- a/test/MC/COFF/symbol-alias.s +++ b/test/MC/COFF/symbol-alias.s @@ -23,8 +23,11 @@ _bar: .long 0 # 0x0 +# Order is important here. Assign _bar_alias_alias before _bar_alias. .globl _foo_alias _foo_alias = _foo + .globl _bar_alias_alias +_bar_alias_alias = _bar_alias .globl _bar_alias _bar_alias = _bar @@ -52,6 +55,14 @@ _bar_alias = _bar // CHECK-NEXT: StorageClass = [[FOO_STORAGE_CLASS]] // CHECK-NEXT: NumberOfAuxSymbols = [[FOO_NUMBER_OF_AUX_SYMBOLS]] +// CHECK: Name = {{_?}}bar_alias_alias +// CHECK-NEXT: Value = [[BAR_VALUE]] +// CHECK-NEXT: SectionNumber = [[BAR_SECTION_NUMBER]] +// CHECK-NEXT: SimpleType = [[BAR_SIMPLE_TYPE]] +// CHECK-NEXT: ComplexType = [[BAR_COMPLEX_TYPE]] +// CHECK-NEXT: StorageClass = [[BAR_STORAGE_CLASS]] +// CHECK-NEXT: NumberOfAuxSymbols = [[BAR_NUMBER_OF_AUX_SYMBOLS]] + // CHECK: Name = {{_?}}bar_alias // CHECK-NEXT: Value = [[BAR_VALUE]] // CHECK-NEXT: SectionNumber = [[BAR_SECTION_NUMBER]] |