aboutsummaryrefslogtreecommitdiff
path: root/test/wasm/invalid-stack-size.test
blob: 6597c548499ae5bef2239989b7b119d106a30e37 (plain) (blame)
1
2
3
4
5
6
7
8
9
; RUN: llc -mtriple wasm32-unknown-unknown-wasm -filetype=obj %s -o %t.o
; RUN: not lld -flavor wasm -o %t.wasm -z stack-size=1 %t.o 2>&1 | FileCheck %s

define i32 @_start() local_unnamed_addr #1 {
entry:
  ret i32 0
}

; CHECK: error: stack size must be 16-byte aligned