diff options
Diffstat (limited to 'test/wasm/undefined-entry.test')
| -rw-r--r-- | test/wasm/undefined-entry.test | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/wasm/undefined-entry.test b/test/wasm/undefined-entry.test index 55f7d6fb7843..ffa079ca638b 100644 --- a/test/wasm/undefined-entry.test +++ b/test/wasm/undefined-entry.test @@ -1,4 +1,11 @@ -RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown-wasm %p/Inputs/ret32.ll -o %t.ret32.o -RUN: not lld -flavor wasm -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s +RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o +RUN: not wasm-ld -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s +RUN: not wasm-ld -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM +RUN: not wasm-ld --allow-undefined -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-ALLOW CHECK: error: undefined symbol: _start +CHECK-CUSTOM: error: undefined symbol: foo +CHECK-ALLOW: error: entry symbol not defined (pass --no-entry to supress): +_start + +RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o |
