• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -asm-verbose=false | FileCheck %s
2
3; Test main functions with alternate signatures.
4
5target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
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