summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/undefined-entry.test
blob: 7906ec9bb170f2aaa2eaca8caf0b1aba8e7ef74b (plain)
1
2
3
4
5
6
7
8
9
10
RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
RUN: not wasm-ld --check-signatures -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s

CHECK: error: undefined symbol: _start

RUN: not wasm-ld --check-signatures -entry=foo -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s -check-prefix=CHECK-CUSTOM

CHECK-CUSTOM: error: undefined symbol: foo

RUN: wasm-ld --check-signatures -entry=foo --allow-undefined -o %t.wasm %t.ret32.o
OpenPOWER on IntegriCloud