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 ptr @llvm.stacksave()
9 call void @llvm.stackrestore(ptr %0)
13 declare ptr @llvm.stacksave()
14 declare void @llvm.stackrestore(ptr)
16 ; CHECK: LLVM ERROR: Variable-sized stack allocations are not supported in GHC calling convention