2020-05-21 12:35:18 +08:00
|
|
|
RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
|
2018-05-05 09:23:07 +08:00
|
|
|
RUN: not wasm-ld -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
|
2018-08-04 08:04:06 +08:00
|
|
|
RUN: not wasm-ld --allow-undefined -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
|
2018-05-05 09:23:07 +08:00
|
|
|
RUN: not wasm-ld -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM
|
2018-01-20 08:52:51 +08:00
|
|
|
|
2020-04-02 00:21:08 +08:00
|
|
|
CHECK: error: entry symbol not defined (pass --no-entry to suppress): _start
|
|
|
|
CHECK-CUSTOM: error: entry symbol not defined (pass --no-entry to suppress): foo
|
2018-01-20 08:52:51 +08:00
|
|
|
|
2018-05-15 07:01:16 +08:00
|
|
|
RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o
|