Files
clang-p2996/llvm/test/CodeGen/WebAssembly/main-declaration.ll
Sam Clegg 5292d17ec8 Revert "[WebAssembly] Fixup main signature by default"
This reverts rL345880.  It caused some test failures on the
webassembly waterfall.  e.g. binaryen2.test_mainenv fails due
the fact that `envp` ends up being undef rather than 0.

Differential Revision: https://reviews.llvm.org/D54117

llvm-svn: 346187
2018-11-06 00:31:02 +00:00

20 lines
457 B
LLVM

; RUN: llc < %s -asm-verbose=false -wasm-temporary-workarounds=false | FileCheck %s
; Test main functions with alternate signatures.
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"
declare void @main()
define void @foo() {
call void @main()
ret void
}
; CHECK-NOT: __original_main
; CHECK-LABEL: foo:
; CHECK-NEXT: call main@FUNCTION
; CHECK-NEXT: end_function
; CHECK-NOT: __original_main