mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
6c5c6d3ab2
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. llvm-svn: 229769
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)
|