2017-12-09 05:18:21 +08:00
|
|
|
; RUN: llc < %s -asm-verbose=false -wasm-temporary-workarounds=false | FileCheck %s
|
|
|
|
|
|
|
|
; Test main functions with alternate signatures.
|
|
|
|
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
|
2018-05-11 01:49:11 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
2017-12-09 05:18:21 +08:00
|
|
|
|
|
|
|
declare void @main()
|
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
call void @main()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-NOT: __original_main
|
|
|
|
; CHECK-LABEL: foo:
|
|
|
|
; CHECK-NEXT: call main@FUNCTION
|
|
|
|
; CHECK-NEXT: end_function
|
|
|
|
; CHECK-NOT: __original_main
|