blob: 205cb133f8ca688a7df9506e49352994c9949e2c [file] [log] [blame]
Dan Gohman4684f822019-01-29 10:53:42 +00001; RUN: llc < %s -asm-verbose=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: