1 ; Check that the GHC calling convention works (s390x)
2 ; Variable-sized stack allocations are not supported in GHC calling convention
4 ; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s
6 define ghccc void @foo() nounwind {
8 %0 = call i8* @llvm.stacksave()
9 call void @llvm.stackrestore(i8* %0)
13 declare i8* @llvm.stacksave()
14 declare void @llvm.stackrestore(i8*)
16 ; CHECK: LLVM ERROR: Variable-sized stack allocations are not supported in GHC calling convention