blob: d4a11ef14d46e51c9e8e04efda458b9fbd29b5ae [file] [log] [blame]
Sam Clegg5292d172018-11-06 00:31:02 +00001; RUN: llc < %s -asm-verbose=false -wasm-temporary-workarounds=false | FileCheck %s
Sam Clegg79c054f2018-09-13 17:13:10 +00002
3; Test that main function with expected signature is not wrapped
4
5target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
6target triple = "wasm32-unknown-unknown"
7
8define i32 @main(i32 %a, i8** %b) {
9 ret i32 0
10}
11
12; CHECK-LABEL: main:
Wouter van Oortmerssen49482f82018-11-19 17:10:36 +000013; CHECK-NEXT: .functype main (i32, i32) -> (i32)
Sam Clegg79c054f2018-09-13 17:13:10 +000014
15; CHECK-NOT: __original_main: