mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Rename Slab to InlineArray
This commit is contained in:
@@ -5,14 +5,14 @@
|
||||
// REQUIRES: swift_feature_Embedded
|
||||
// REQUIRES: swift_feature_ValueGenerics
|
||||
|
||||
// CHECK-DAG: !DICompositeType({{.*}}templateParams: ![[SLAB_PARAMS:.*]], {{.*}}identifier: "$es4SlabVy$0_4main8MySpriteVGD"
|
||||
// CHECK-DAG: !DICompositeType({{.*}}templateParams: ![[SLAB_PARAMS:.*]], {{.*}}identifier: "$es11InlineArrayVy$0_4main8MySpriteVGD"
|
||||
// CHECK-DAG: ![[SLAB_PARAMS]] = !{![[COUNT_PARAM:.*]], ![[ELEMENT_PARAM:.*]]}
|
||||
// CHECK-DAG: ![[COUNT_PARAM]] = !DITemplateTypeParameter(type: ![[COUNT_TYPE:.*]])
|
||||
// CHECK-DAG: ![[COUNT_TYPE]] = !DICompositeType({{.*}}name: "$e$0_D"
|
||||
// CHECK-DAG: ![[ELEMENT_PARAM]] = !DITemplateTypeParameter(type: ![[ELEMENT_TYPE:.*]])
|
||||
// CHECK-DAG: ![[ELEMENT_TYPE]] = !DICompositeType({{.*}}name: "MySprite", {{.*}}identifier: "$e4main8MySpriteVD"
|
||||
struct MySprites {
|
||||
var bricks: Slab<1, MySprite>
|
||||
var bricks: InlineArray<1, MySprite>
|
||||
}
|
||||
|
||||
struct MySprite {
|
||||
@@ -22,6 +22,6 @@ struct MySprite {
|
||||
nonisolated(unsafe)
|
||||
var sprites: MySprites? = nil
|
||||
public func foo() {
|
||||
let bricks: Slab<1, MySprite> = [MySprite()]
|
||||
let bricks: InlineArray<1, MySprite> = [MySprite()]
|
||||
sprites = .init(bricks: bricks)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user