1; Check that the GHC calling convention works (s390x)
2; Thread local storage is not supported in GHC calling convention
3;
4; RUN: not --crash llc -mtriple=s390x-ibm-linux < %s 2>&1 | FileCheck %s
5
6@x = thread_local global i32 0
7
8define ghccc void @foo() nounwind {
9entry:
10  call void @bar(i32 *@x)
11  ret void
12}
13
14declare void @bar(i32*)
15
16; CHECK: LLVM ERROR: In GHC calling convention TLS is not supported
17