[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / wasm / relocatable-comdat.s
blobff3bfcc3175038777f700d7ed12ccf667258de3f
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
7 .globl _start
8 .type _start,@function
9 _start:
10 .functype _start () -> ()
11 i32.const 0
12 i32.load foo
13 drop
14 end_function
17 .section .data.foo,"",@
18 foo:
19 .int32 42
20 .size foo, 4
22 # Verify that .data.foo in this file is not merged with comdat .data.foo
23 # section in Inputs/comdat-data.s.
25 # CHECK: - Type: DATA
26 # CHECK-NEXT: Segments:
27 # CHECK-NEXT: - SectionOffset: 6
28 # CHECK-NEXT: InitFlags: 0
29 # CHECK-NEXT: Offset:
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
35 # CHECK-NEXT: Offset:
36 # CHECK-NEXT: Opcode: I32_CONST
37 # CHECK-NEXT: Value: 4
38 # CHECK-NEXT: Content: 2A0000002B000000
40 # CHECK: SegmentInfo:
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: [ ]