aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/invalid-dilocalvariable-null-scope.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-06-09 19:06:30 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-06-09 19:06:30 +0000
commit85d8b2bbe386bcfe669575d05b61482d7be07e5d (patch)
tree1dc5e75ab222a9ead44c699eceafab7a6ca7b310 /test/Assembler/invalid-dilocalvariable-null-scope.ll
parent5a5ac124e1efaf208671f01c46edb15f29ed2a0b (diff)
Vendor import of llvm trunk r239412:vendor/llvm/llvm-trunk-r239412
Notes
Notes: svn path=/vendor/llvm/dist/; revision=284184 svn path=/vendor/llvm/llvm-trunk-r239412/; revision=284185; tag=vendor/llvm/llvm-trunk-r239412
Diffstat (limited to 'test/Assembler/invalid-dilocalvariable-null-scope.ll')
-rw-r--r--test/Assembler/invalid-dilocalvariable-null-scope.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Assembler/invalid-dilocalvariable-null-scope.ll b/test/Assembler/invalid-dilocalvariable-null-scope.ll
new file mode 100644
index 000000000000..859412a2568c
--- /dev/null
+++ b/test/Assembler/invalid-dilocalvariable-null-scope.ll
@@ -0,0 +1,4 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+; CHECK: <stdin>:[[@LINE+1]]:30: error: 'scope' cannot be null
+!0 = !DILocalVariable(scope: null)