blob: f0416bb6b32f961bffaf89f43b9937c53d41451a [file] [log] [blame]
; RUN: llc -filetype=obj %s -o %t.o
; RUN: not wasm-ld --undefined _Z3fooi \
; RUN: -o %t.wasm %t.o 2>&1 | FileCheck %s
; CHECK: error: undefined symbol: foo(int)
; RUN: not wasm-ld --no-demangle --undefined _Z3fooi \
; RUN: -o %t.wasm %t.o 2>&1 | FileCheck -check-prefix=CHECK-NODEMANGLE %s
; CHECK-NODEMANGLE: error: undefined symbol: _Z3fooi
target triple = "wasm32-unknown-unknown"
define hidden void @_start() local_unnamed_addr {
entry:
ret void
}