2018-05-31 02:07:52 +08:00
|
|
|
; RUN: cd %T
|
|
|
|
; RUN: rm -f a.out a.out.lto.bc a.out.lto.o
|
|
|
|
; RUN: llvm-as %s -o %t.o
|
|
|
|
; RUN: llvm-as %p/Inputs/save-temps.ll -o %t2.o
|
|
|
|
; RUN: wasm-ld -r -o a.out %t.o %t2.o -save-temps
|
|
|
|
; RUN: llvm-nm a.out | FileCheck %s
|
|
|
|
; RUN: llvm-nm a.out.0.0.preopt.bc | FileCheck %s
|
|
|
|
; RUN: llvm-nm a.out.lto.o | FileCheck %s
|
|
|
|
; RUN: llvm-dis a.out.0.0.preopt.bc
|
|
|
|
|
2021-10-07 18:10:52 +08:00
|
|
|
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-n32:64-S128"
|
2018-05-31 02:07:52 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: T bar
|
|
|
|
; CHECK: T foo
|