10 lines
451 B
LLVM
10 lines
451 B
LLVM
; RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown-wasm %s -o %t.o
|
|
; RUN: llc -filetype=obj -mtriple=wasm32-unknown-unknown-wasm %p/Inputs/ret32.ll -o %t.ret32.o
|
|
; RUN: not lld -flavor wasm -o %t.wasm %t.o %t.ret32.o 2>&1 | FileCheck %s
|
|
|
|
@ret32 = extern_weak global i32, align 4
|
|
|
|
; CHECK: error: symbol type mismatch: ret32
|
|
; CHECK: >>> defined as Global in {{.*}}symbol-type-mismatch.ll.tmp.o
|
|
; CHECK: >>> defined as Function in {{.*}}.ret32.o
|