1 RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
2 RUN: not wasm-ld -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
3 RUN: not wasm-ld -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM
4 RUN: not wasm-ld --allow-undefined -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-ALLOW
6 CHECK: error: undefined symbol: _start
7 CHECK-CUSTOM: error: undefined symbol: foo
8 CHECK-ALLOW: error: entry symbol not defined (pass --no-entry to supress):
11 RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o