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

12 lines
527 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
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
2018-01-18 06:29:21 +08:00
CHECK: error: undefined symbol: _start
2018-08-05 05:47:16 +08:00
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