18 lines · plain
1; RUN: llc < %s -asm-verbose=false | FileCheck %s2 3; Test main functions with alternate signatures.4 5target triple = "wasm32-unknown-unknown"6 7declare i32 @main()8 9define i32 @foo() {10 %t = call i32 @main()11 ret i32 %t12}13 14; CHECK-LABEL: foo:15; CHECK-NEXT: .functype foo () -> (i32)16; CHECK-NEXT: call __original_main17; CHECK-NEXT: end_function18