File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift | %FileCheck %s
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-run-simple-swift(-enable-experimental-feature NoncopyableGenerics) | %FileCheck %s
2
3
// REQUIRES: executable_test, noncopyable_generics
3
4
4
5
struct A : ~ Copyable {
@@ -26,14 +27,14 @@ print("alignment: \(actualAlignment1 == expectedAlignment)")
26
27
27
28
let a = A ( 42 )
28
29
29
- let actualSize2 = MemoryLayout . size ( of : a)
30
- // CHECK: size(of :): true
31
- print ( " size(of :): \( actualSize2 == expectedSize) " )
30
+ let actualSize2 = MemoryLayout . size ( ofValue : a)
31
+ // CHECK: size(ofValue :): true
32
+ print ( " size(ofValue :): \( actualSize2 == expectedSize) " )
32
33
33
- let actualStride2 = MemoryLayout . stride ( of : a)
34
- // CHECK: stride(of :): true
35
- print ( " stride(of :): \( actualStride2 == expectedStride) " )
34
+ let actualStride2 = MemoryLayout . stride ( ofValue : a)
35
+ // CHECK: stride(ofValue :): true
36
+ print ( " stride(ofValue :): \( actualStride2 == expectedStride) " )
36
37
37
- let actualAlignment2 = MemoryLayout . alignment ( of : a)
38
- // CHECK: alignment(of :): true
39
- print ( " alignment(of :): \( actualAlignment2 == expectedAlignment) " )
38
+ let actualAlignment2 = MemoryLayout . alignment ( ofValue : a)
39
+ // CHECK: alignment(ofValue :): true
40
+ print ( " alignment(ofValue :): \( actualAlignment2 == expectedAlignment) " )
You can’t perform that action at this time.
0 commit comments