IR: Allow MDSubrange to have 'count: -1'
[oota-llvm.git] / test / Assembler / invalid-mdsubrange-count-negative.ll
index 99cc8876750cb301eccae93bc24881f072f3bd7f..92c0b4e7ca48c5eb9a936bcf65150791b5eab9bc 100644 (file)
@@ -1,4 +1,7 @@
 ; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
 
-; CHECK: [[@LINE+1]]:25: error: expected unsigned integer
-!0 = !MDSubrange(count: -3)
+; CHECK-NOT: error
+!0 = !MDSubrange(count: -1)
+
+; CHECK: <stdin>:[[@LINE+1]]:25: error: value for 'count' too small, limit is -1
+!0 = !MDSubrange(count: -2)