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 6 7# RUN: not wasm-ld -o out.wasm %t.o %t.a 2>&1 | FileCheck %s 8 9 .globl _start 10_start: 11 .functype _start () -> () 12 end_function 13 14# CHECK: archive has no index; run ranlib to add one 15