
When we originally wrote these tests we didn't have a stable and fleshed out assembly format. Now we do so we should prefer that over llvm ir for lld tests to avoid including more part of llvm than necessary in order to run the test. This change converts just 30 out of about 130 test files. More to come when I have some more time. Differential Revision: https://reviews.llvm.org/D80361
10 lines
529 B
Plaintext
10 lines
529 B
Plaintext
RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
|
|
RUN: not wasm-ld -o %t.wasm %t.ret32.o 2>&1 | FileCheck %s
|
|
RUN: not wasm-ld --allow-undefined -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
|
|
|
|
CHECK: error: entry symbol not defined (pass --no-entry to suppress): _start
|
|
CHECK-CUSTOM: error: entry symbol not defined (pass --no-entry to suppress): foo
|
|
|
|
RUN: wasm-ld --no-entry -o %t.wasm %t.ret32.o
|