blob: 99ca5a367d3c6d4436e9f76dd0e4cec7073a2d2b [file] [log] [blame]
# Tests error on archive file without a symbol table
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
# RUN: llvm-as -o %t.archive.o %S/Inputs/archive1.ll
# RUN: rm -f %t.a
# RUN: llvm-ar crS %t.a %t.archive.o
# RUN: not wasm-ld -o out.wasm %t.o %t.a 2>&1 | FileCheck %s
.globl _start
_start:
.functype _start () -> ()
end_function
# CHECK: archive has no index; run ranlib to add one