summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-dilocalvariable-arg-negative.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/invalid-dilocalvariable-arg-negative.ll')
-rw-r--r--llvm/test/Assembler/invalid-dilocalvariable-arg-negative.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-dilocalvariable-arg-negative.ll b/llvm/test/Assembler/invalid-dilocalvariable-arg-negative.ll
new file mode 100644
index 00000000000..08e370a3666
--- /dev/null
+++ b/llvm/test/Assembler/invalid-dilocalvariable-arg-negative.ll
@@ -0,0 +1,6 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+!0 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: 0)
+
+; CHECK: <stdin>:[[@LINE+1]]:66: error: expected unsigned integer
+!1 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: -1)
OpenPOWER on IntegriCloud