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