xref: /llvm-project/llvm/test/CodeGen/SystemZ/ghc-cc-03.ll (revision 4ad76852584480b646d1ce360202e18591ea8938)
1; Check that the GHC calling convention works (s390x)
2; In GHC calling convention the only allowed return type is void
3;
4; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s
5
6define ghccc i64 @foo() nounwind {
7entry:
8  ret i64 42
9}
10
11; CHECK: LLVM ERROR: GHC functions return void only
12