diff options
Diffstat (limited to 'test/MC/ELF/alias.s')
-rw-r--r-- | test/MC/ELF/alias.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/ELF/alias.s b/test/MC/ELF/alias.s index 8e1318230bb8..0ab6dd4b5b8e 100644 --- a/test/MC/ELF/alias.s +++ b/test/MC/ELF/alias.s @@ -24,6 +24,15 @@ bar5 = bar4 bar6 = bar5 bar6: +// Test that indirect local aliases do not appear as symbols. +.data +.Llocal: + +.text +leaq .Llocal1(%rip), %rdi +.Llocal1 = .Llocal2 +.Llocal2 = .Llocal + // CHECK: Symbols [ // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: (0) @@ -99,12 +108,15 @@ bar6: // CHECK-NEXT: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: .text (0) +// CHECK-NOT: Symbol { // CHECK: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: .data (0) +// CHECK-NOT: Symbol { // CHECK: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: .bss (0) +// CHECK-NOT: Symbol { // CHECK: } // CHECK-NEXT: Symbol { // CHECK-NEXT: Name: bar3 |