zig/deps/lld/test/wasm/undefined-entry.test

10 lines
493 B
Plaintext
Raw Normal View History

2018-08-05 05:47:16 +08:00
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
2019-02-08 06:07:18 +08:00
RUN: not wasm-ld --allow-undefined -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
2018-08-05 05:47:16 +08:00
RUN: not wasm-ld -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM
2018-01-18 06:29:21 +08:00
2019-02-08 06:07:18 +08:00
CHECK: error: entry symbol not defined (pass --no-entry to supress): _start
CHECK-CUSTOM: error: entry symbol not defined (pass --no-entry to supress): foo
2018-08-05 05:47:16 +08:00
RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o