mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
c2c5e48ad5
It turns out that `count: -1` is a special value indicating an empty array, such as `Values` in: struct T { unsigned Count; int Values[]; }; Handle it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229769 91177308-0d34-0410-b5e6-96231b3b80d8
8 lines
218 B
LLVM
8 lines
218 B
LLVM
; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
|
|
|
|
; 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)
|