summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier/global-ctors-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Verifier/global-ctors-2.ll')
-rw-r--r--llvm/test/Verifier/global-ctors-2.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Verifier/global-ctors-2.ll b/llvm/test/Verifier/global-ctors-2.ll
new file mode 100644
index 00000000000..a811512a931
--- /dev/null
+++ b/llvm/test/Verifier/global-ctors-2.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+
+@llvm.global_ctors = appending global [1 x { i32, void()* } ] [
+ { i32, void()* } { i32 65535, void ()* null }
+]
+; CHECK: the third field of the element type is mandatory, specify i8* null to migrate from the obsoleted 2-field form
OpenPOWER on IntegriCloud