]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/wasm/undefined-entry.test
Vendor import of lld trunk r338150:
[FreeBSD/FreeBSD.git] / test / wasm / undefined-entry.test
1 RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
2 RUN: not wasm-ld -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
3 RUN: not wasm-ld -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM
4 RUN: not wasm-ld --allow-undefined -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-ALLOW
5
6 CHECK: error: undefined symbol: _start
7 CHECK-CUSTOM: error: undefined symbol: foo
8 CHECK-ALLOW: error: entry symbol not defined (pass --no-entry to supress):
9 _start
10
11 RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o