1; RUN: llc -filetype=obj %s -o %t.o 2 3target triple = "wasm32-unknown-unknown" 4 5define hidden void @entry() local_unnamed_addr #0 { 6entry: 7 ret void 8} 9 10; RUN: not wasm-ld -o %t.exe 2>&1 | FileCheck -check-prefix=IN %s 11; IN: error: no input files 12 13; RUN: not wasm-ld %t.o 2>&1 | FileCheck -check-prefix=OUT %s 14; OUT: error: no output file specified 15 16; RUN: not wasm-ld 2>&1 | FileCheck -check-prefix=BOTH %s 17; BOTH: error: no input files 18; BOTH-NOT: error: no output file specified 19 20; RUN: not wasm-ld --export-table --import-table %t.o 2>&1 \ 21; RUN: | FileCheck -check-prefix=TABLE %s 22; TABLE: error: --import-table and --export-table may not be used together 23 24; RUN: not wasm-ld --relocatable --shared-memory %t.o 2>&1 \ 25; RUN: | FileCheck -check-prefix=SHARED-MEM %s 26; SHARED-MEM: error: -r and --shared-memory may not be used together 27