aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-generic-debug-node-tag-overflow.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-generic-debug-node-tag-overflow.ll')
-rw-r--r--test/Assembler/invalid-generic-debug-node-tag-overflow.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/invalid-generic-debug-node-tag-overflow.ll b/test/Assembler/invalid-generic-debug-node-tag-overflow.ll
new file mode 100644
index 0000000..1722caa
--- /dev/null
+++ b/test/Assembler/invalid-generic-debug-node-tag-overflow.ll
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+; CHECK-NOT: error
+!0 = !GenericDebugNode(tag: 65535)
+
+; CHECK: <stdin>:[[@LINE+1]]:29: error: value for 'tag' too large, limit is 65535
+!1 = !GenericDebugNode(tag: 65536)