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