diff options
Diffstat (limited to 'test/Assembler/invalid-disubrange-count-negative.ll')
-rw-r--r-- | test/Assembler/invalid-disubrange-count-negative.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/invalid-disubrange-count-negative.ll b/test/Assembler/invalid-disubrange-count-negative.ll new file mode 100644 index 000000000000..f2ad4c302cb2 --- /dev/null +++ b/test/Assembler/invalid-disubrange-count-negative.ll @@ -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) |