2018-05-31 02:07:52 +08:00
|
|
|
; RUN: llvm-as %s -o %t.o
|
|
|
|
; RUN: wasm-ld %t.o -o %t2 -save-temps
|
|
|
|
; RUN: llvm-dis < %t2.0.2.internalize.bc | FileCheck %s
|
|
|
|
|
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-wasm"
|
|
|
|
|
|
|
|
define void @_start() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
define hidden void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; Check that _start is not internalized.
|
|
|
|
; CHECK: define void @_start()
|
|
|
|
|
|
|
|
; Check that foo function is correctly internalized.
|
|
|
|
; CHECK: define internal void @foo()
|