diff options
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/X86/obj2yaml-dup-section-name.s | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/llvm/test/Object/X86/obj2yaml-dup-section-name.s b/llvm/test/Object/X86/obj2yaml-dup-section-name.s new file mode 100644 index 00000000000..a02e93fa54a --- /dev/null +++ b/llvm/test/Object/X86/obj2yaml-dup-section-name.s @@ -0,0 +1,28 @@ +# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux +# RUN: obj2yaml %t.o | FileCheck %s + +# CHECK: Sections: +# CHECK: - Name: .group{{$}} +# CHECK: Members: +# CHECK: - SectionOrType: .text.foo{{$}} +# CHECK: - SectionOrType: .rela.text.foo{{$}} +# CHECK: - Name: .text.foo{{$}} +# CHECK: - Name: .rela.text.foo{{$}} +# CHECK: Info: .text.foo{{$}} +# CHECK: - Name: .group1{{$}} +# CHECK: Members: +# CHECK: - SectionOrType: .text.foo2{{$}} +# CHECK: - SectionOrType: .rela.text.foo3{{$}} +# CHECK: - Name: .text.foo2{{$}} +# CHECK: - Name: .rela.text.foo3{{$}} +# CHECK: Info: .text.foo2{{$}} +# CHECK: Symbols: +# CHECK: Section: .group{{$}} +# CHECK: Section: .group1{{$}} + + + .section .text.foo,"axG",@progbits,sym1,comdat + .quad undef + + .section .text.foo,"axG",@progbits,sym2,comdat + .quad undef |

