diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-10-22 23:41:52 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-10-22 23:41:52 +0000 |
commit | 2b3ea3cdad927cb0e346dd24e9bf84f8eb83babf (patch) | |
tree | 9f3e7575ee060cc4efe92e3168bb625168817418 /test | |
parent | f45787c645cdf9fb9e0f65b77d48630579a6d3e3 (diff) | |
download | external_llvm-2b3ea3cdad927cb0e346dd24e9bf84f8eb83babf.zip external_llvm-2b3ea3cdad927cb0e346dd24e9bf84f8eb83babf.tar.gz external_llvm-2b3ea3cdad927cb0e346dd24e9bf84f8eb83babf.tar.bz2 |
MC: Support multiple sections with the same name in the same comdat group
Code review by Eric Christopher and Rafael Espindola.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/MC/ELF/comdat-dup-group-name.s | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test/MC/ELF/comdat-dup-group-name.s b/test/MC/ELF/comdat-dup-group-name.s new file mode 100644 index 0000000..1181e2e --- /dev/null +++ b/test/MC/ELF/comdat-dup-group-name.s @@ -0,0 +1,41 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | llvm-readobj -s -t | FileCheck %s + +// Test that we produce two foo sections, each in separate groups + +// CHECK: Index: 1 +// CHECK-NEXT: Name: .group + +// CHECK: Index: 2 +// CHECK-NEXT: Name: .group + +// CHECK: Index: 6 +// CHECK-NEXT: Name: .foo + +// CHECK: Index: 7 +// CHECK-NEXT: Name: .foo + +// CHECK: Symbols [ + +// CHECK: Name: f1 +// CHECK-NOT: } +// CHECK: Section: .group (0x1) + +// CHECK: Name: f2 +// CHECK-NOT: } +// CHECK: Section: .group (0x2) + +// CHECK: Name: .foo +// CHECK-NOT: } +// CHECK: Section: .foo (0x6) + +// CHECK: Name: .foo +// CHECK-NOT: } +// CHECK: Section: .foo (0x7) + + + .section .foo,"axG",@progbits,f1,comdat + nop + + .section .foo,"axG",@progbits,f2,comdat + nop + |