mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +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
15 lines
478 B
LLVM
15 lines
478 B
LLVM
; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder %s
|
|
|
|
; CHECK: !named = !{!0, !0, !1, !2}
|
|
!named = !{!0, !1, !2, !3}
|
|
|
|
; CHECK: !0 = !MDSubrange(count: -1)
|
|
; CHECK-NEXT: !1 = !MDSubrange(count: -1, lowerBound: 4)
|
|
; CHECK-NEXT: !2 = !MDSubrange(count: -1, lowerBound: -5)
|
|
!0 = !MDSubrange(count: -1)
|
|
!1 = !MDSubrange(count: -1, lowerBound: 0)
|
|
|
|
!2 = !MDSubrange(count: -1, lowerBound: 4)
|
|
!3 = !MDSubrange(count: -1, lowerBound: -5)
|