summaryrefslogtreecommitdiff
path: root/test/Verifier/llvm.used-invalid-type.ll
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-22 14:58:02 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-22 14:58:02 +0000
commitcde25b435a907e7741da0c0d18953850936277c4 (patch)
tree30353631edc608810481f7ad09e5163c2826d3f6 /test/Verifier/llvm.used-invalid-type.ll
parent2c55362848eab1a8552a31f8da1a47d17105b4d9 (diff)
downloadllvm-cde25b435a907e7741da0c0d18953850936277c4.tar.gz
llvm-cde25b435a907e7741da0c0d18953850936277c4.tar.bz2
llvm-cde25b435a907e7741da0c0d18953850936277c4.tar.xz
Clarify that llvm.used can contain aliases.
Also add a check for llvm.used in the verifier and simplify clients now that they can assume they have a ConstantArray. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180019 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier/llvm.used-invalid-type.ll')
-rw-r--r--test/Verifier/llvm.used-invalid-type.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Verifier/llvm.used-invalid-type.ll b/test/Verifier/llvm.used-invalid-type.ll
new file mode 100644
index 0000000000..2de5c86fce
--- /dev/null
+++ b/test/Verifier/llvm.used-invalid-type.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
+
+@llvm.used = appending global [1 x i32] [i32 0], section "llvm.metadata"
+
+; CHECK: wrong type for intrinsic global variable
+; CHECK-NEXT: [1 x i32]* @llvm.used