diff options
Diffstat (limited to 'test/Verifier/global-ctors.ll')
-rw-r--r-- | test/Verifier/global-ctors.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Verifier/global-ctors.ll b/test/Verifier/global-ctors.ll new file mode 100644 index 0000000..76570c5 --- /dev/null +++ b/test/Verifier/global-ctors.ll @@ -0,0 +1,11 @@ +; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s + +@llvm.global_ctors = appending global [1 x { i32, void()*, i8 } ] [ + { i32, void()*, i8 } { i32 65535, void ()* null, i8 0 } +] +; CHECK: wrong type for intrinsic global variable + +@llvm.global_dtors = appending global [1 x { i32, void()*, i8*, i8 } ] [ + { i32, void()*, i8*, i8 } { i32 65535, void ()* null, i8* null, i8 0} +] +; CHECK: wrong type for intrinsic global variable |