1 RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
2 RUN: not wasm-ld -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
3 RUN: not wasm-ld --allow-undefined -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
4 RUN: not wasm-ld -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM
6 CHECK: error: entry symbol not defined (pass --no-entry to suppress): _start
7 CHECK-CUSTOM: error: entry symbol not defined (pass --no-entry to suppress): foo
9 RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o