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