Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / wasm / archive-no-index.s
blob99ca5a367d3c6d4436e9f76dd0e4cec7073a2d2b
1 # Tests error on archive file without a symbol table
2 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
3 # RUN: llvm-as -o %t.archive.o %S/Inputs/archive1.ll
4 # RUN: rm -f %t.a
5 # RUN: llvm-ar crS %t.a %t.archive.o
7 # RUN: not wasm-ld -o out.wasm %t.o %t.a 2>&1 | FileCheck %s
9 .globl _start
10 _start:
11 .functype _start () -> ()
12 end_function
14 # CHECK: archive has no index; run ranlib to add one