Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / wasm / func-attr-tombstone.s
blob559073783fcf34595795ede45e3e2c772e49baaf
1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
2 # RUN: wasm-ld %t.o -o %t.wasm
3 # RUN: obj2yaml %t.wasm | FileCheck %s
5 .functype foo () -> ()
6 .functype bar () -> ()
7 .functype _start () -> ()
8 .globl foo
9 .type foo,@function
10 foo:
11 .functype foo () -> ()
12 end_function
14 .section .text.bar,"",@
15 .globl bar
16 .type bar,@function
17 bar:
18 .functype bar () -> ()
19 end_function
21 .globl _start
22 .type _start,@function
23 _start:
24 .functype _start () -> ()
25 call foo
26 end_function
28 .section .custom_section.llvm.func_attr.custom0,"",@
29 .int32 foo@FUNCINDEX
30 .int32 bar@FUNCINDEX
32 # CHECK: - Type: CUSTOM
33 # CHECK-NEXT: Name: llvm.func_attr.custom0
34 # CHECK-NEXT: Payload: 00000000FFFFFFFF