1; RUN: llc < %s -asm-verbose=false | FileCheck %s
2; RUN: llc < %s -asm-verbose=false -opaque-pointers | FileCheck %s
3
4; Test main functions with alternate signatures.
5
6target triple = "wasm32-unknown-unknown"
7
8declare i32 @main()
9
10define i32 @foo() {
11  %t = call i32 @main()
12  ret i32 %t
13}
14
15; CHECK-LABEL: foo:
16; CHECK-NEXT:    .functype foo () -> (i32)
17; CHECK-NEXT:    call __original_main
18; CHECK-NEXT:    end_function
19