2019-01-29 18:53:42 +08:00
|
|
|
; RUN: llc < %s -asm-verbose=false | FileCheck %s
|
2017-12-09 05:18:21 +08:00
|
|
|
|
|
|
|
; 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
|
|
|
|
2019-01-29 18:53:42 +08:00
|
|
|
define i32 @main() {
|
|
|
|
ret i32 0
|
2017-12-09 05:18:21 +08:00
|
|
|
}
|
|
|
|
|
2019-01-29 18:53:42 +08:00
|
|
|
; CHECK-LABEL: __original_main:
|
|
|
|
; CHECK-NEXT: .functype __original_main () -> (i32)
|
|
|
|
; CHECK-NEXT: i32.const 0
|
2017-12-09 05:18:21 +08:00
|
|
|
; CHECK-NEXT: end_function
|
|
|
|
|
|
|
|
; CHECK-LABEL: main:
|
2018-11-20 01:10:36 +08:00
|
|
|
; CHECK-NEXT: .functype main (i32, i32) -> (i32)
|
2019-02-23 08:07:39 +08:00
|
|
|
; CHECK: call __original_main
|