xref: /llvm-project/llvm/test/Assembler/invalid-disubrange-count-negative.ll (revision 9ce58b1cfbb125c77dc7a89e43b767727c7bb4db)
1; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
2
3; CHECK-NOT: error:
4!0 = !DISubrange(count: -1)
5
6; CHECK: <stdin>:[[@LINE+1]]:25: error: value for 'count' too small, limit is -1
7!0 = !DISubrange(count: -2)
8