DebugInfo: Rename testcases from MD* to DI*, NFC
[oota-llvm.git] / test / Assembler / invalid-disubrange-count-negative.ll
diff --git a/test/Assembler/invalid-disubrange-count-negative.ll b/test/Assembler/invalid-disubrange-count-negative.ll
new file mode 100644 (file)
index 0000000..f2ad4c3
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+; CHECK-NOT: error:
+!0 = !DISubrange(count: -1)
+
+; CHECK: <stdin>:[[@LINE+1]]:25: error: value for 'count' too small, limit is -1
+!0 = !DISubrange(count: -2)