File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 16
16
// UNSUPPORTED: use_os_stdlib
17
17
// UNSUPPORTED: back_deployment_runtime
18
18
19
- // test disabled until rdar://151476435 is fixed
20
- // REQUIRES: rdar151476435
21
-
22
19
import Swift
23
20
import layout_string_witnesses_types
24
21
import layout_string_witnesses_types_resilient
@@ -33,7 +30,7 @@ class TestClass {
33
30
34
31
func testGeneric( ) {
35
32
let ptr = allocateInternalGenericPtr ( of: TestClass . self)
36
-
33
+
37
34
do {
38
35
let x = TestClass ( )
39
36
testGenericInit ( ptr, to: x)
@@ -1246,7 +1243,7 @@ func testNonCopyableGenericStructSimpleClass() {
1246
1243
let ptr = UnsafeMutableBufferPointer< NonCopyableGenericStruct< SimpleClass>>. allocate( capacity: 1 )
1247
1244
1248
1245
let x = NonCopyableGenericStruct ( x: 23 , y: SimpleClass ( x: 23 ) )
1249
- ptr [ 0 ] = x
1246
+ ptr. initializeElement ( at : 0 , to : x )
1250
1247
1251
1248
// CHECK-NEXT: Before deinit
1252
1249
print ( " Before deinit " )
@@ -1264,7 +1261,7 @@ func testNonCopyableGenericEnumSimpleClass() {
1264
1261
let ptr = UnsafeMutableBufferPointer< NonCopyableGenericEnum< SimpleClass>>. allocate( capacity: 1 )
1265
1262
1266
1263
let x = NonCopyableGenericEnum . x ( 23 , SimpleClass ( x: 23 ) )
1267
- ptr [ 0 ] = x
1264
+ ptr. initializeElement ( at : 0 , to : x )
1268
1265
1269
1266
// CHECK-NEXT: Before deinit
1270
1267
print ( " Before deinit " )
You can’t perform that action at this time.
0 commit comments