forked from OSchip/llvm-project
11 lines
446 B
Plaintext
11 lines
446 B
Plaintext
RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
|
|
RUN: not lld -flavor wasm --check-signatures -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
|
|
|
|
CHECK: error: undefined symbol: _start
|
|
|
|
RUN: not lld -flavor wasm --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: lld -flavor wasm --check-signatures -entry=foo --allow-undefined -o %t.wasm %t.ret32.o
|