diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-22 15:16:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-04-22 15:16:51 +0000 |
commit | 97bf57d488a1bfcf7128cc2dbc695f6901ae9be7 (patch) | |
tree | c8b8ee8fee42bdb9d383d70682bc1943734dd0fa /test | |
parent | cde25b435a907e7741da0c0d18953850936277c4 (diff) |
Also verify llvm.compiler_used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180020 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Verifier/llvm.compiler_used-invalid-type.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Verifier/llvm.compiler_used-invalid-type.ll b/test/Verifier/llvm.compiler_used-invalid-type.ll new file mode 100644 index 00000000000..0913027fb47 --- /dev/null +++ b/test/Verifier/llvm.compiler_used-invalid-type.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s + +@llvm.compiler_used = appending global [1 x i32] [i32 0], section "llvm.metadata" + +; CHECK: wrong type for intrinsic global variable +; CHECK-NEXT: [1 x i32]* @llvm.compiler_used |