summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-dilocalvariable-null-scope.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/invalid-dilocalvariable-null-scope.ll')
-rw-r--r--llvm/test/Assembler/invalid-dilocalvariable-null-scope.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-dilocalvariable-null-scope.ll b/llvm/test/Assembler/invalid-dilocalvariable-null-scope.ll
new file mode 100644
index 00000000000..859412a2568
--- /dev/null
+++ b/llvm/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)
OpenPOWER on IntegriCloud