1 # RUN: llvm-mc -triple=wasm32 -filetype=obj %p/Inputs/comdat-data.s -o %t1.o
2 # RUN: llvm-mc -triple=wasm32 -filetype=obj %s -o %t.o
3 # RUN: wasm-ld --relocatable -o %t.wasm %t.o %t1.o
4 # RUN: obj2yaml %t.wasm | FileCheck %s
10 .functype _start () -> ()
17 .section .data.foo,"",@
22 # Verify that .data.foo in this file is not merged with comdat .data.foo
23 # section in Inputs/comdat-data.s.
26 # CHECK-NEXT: Segments:
27 # CHECK-NEXT: - SectionOffset: 6
28 # CHECK-NEXT: InitFlags: 0
30 # CHECK-NEXT: Opcode: I32_CONST
31 # CHECK-NEXT: Value: 0
32 # CHECK-NEXT: Content: 2A000000
33 # CHECK-NEXT: - SectionOffset: 15
34 # CHECK-NEXT: InitFlags: 0
36 # CHECK-NEXT: Opcode: I32_CONST
37 # CHECK-NEXT: Value: 4
38 # CHECK-NEXT: Content: 2A0000002B000000
41 # CHECK-NEXT: - Index: 0
42 # CHECK-NEXT: Name: .data.foo
43 # CHECK-NEXT: Alignment: 0
44 # CHECK-NEXT: Flags: [ ]
45 # CHECK-NEXT: - Index: 1
46 # CHECK-NEXT: Name: .data.foo
47 # CHECK-NEXT: Alignment: 0
48 # CHECK-NEXT: Flags: [ ]