Skip to content

Commit 35fb087

Browse files
committed
Use num_extra_inhabitants_64bit to fix reflect_CheckedContinuation.swift and
reflect_UnsafeContinuation.swift on non-Darwin platforms.
1 parent 81469eb commit 35fb087

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

validation-test/Reflection/reflect_CheckedContinuation.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_CheckedContinuation
33
// RUN: %target-codesign %t/reflect_CheckedContinuation
44

5-
// RUN: %target-run %target-swift-reflection-test %t/reflect_CheckedContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
5+
// RUN: %target-run %target-swift-reflection-test %t/reflect_CheckedContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize %add_num_extra_inhabitants
66

77
// REQUIRES: reflection_test_support
88
// REQUIRES: executable_test
@@ -45,7 +45,7 @@ if #available(SwiftStdlib 5.1, *) {
4545
// CHECK-64: Type info:
4646
// CHECK-64-NEXT: (class_instance size=24 alignment=8 stride=24 num_extra_inhabitants=0 bitwise_takable=1
4747
// CHECK-64-NEXT: (field name=cont offset=16
48-
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=2147483647 bitwise_takable=1
48+
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=[[#num_extra_inhabitants_64bit]] bitwise_takable=1
4949
// CHECK-64-NEXT: (field name=canary offset=0
5050
// CHECK-64-NEXT: (reference kind=strong refcounting=native)))))
5151

validation-test/Reflection/reflect_UnsafeContinuation.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/reflect_UnsafeContinuation
33
// RUN: %target-codesign %t/reflect_UnsafeContinuation
44

5-
// RUN: %target-run %target-swift-reflection-test %t/reflect_UnsafeContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
5+
// RUN: %target-run %target-swift-reflection-test %t/reflect_UnsafeContinuation | %FileCheck %s --check-prefix=CHECK-%target-ptrsize %add_num_extra_inhabitants
66

77
// REQUIRES: reflection_test_support
88
// REQUIRES: executable_test
@@ -45,7 +45,7 @@ if #available(SwiftStdlib 5.1, *) {
4545
// CHECK-64: Type info:
4646
// CHECK-64-NEXT: (class_instance size=24 alignment=8 stride=24 num_extra_inhabitants=0 bitwise_takable=1
4747
// CHECK-64-NEXT: (field name=cont offset=16
48-
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=2147483647 bitwise_takable=1
48+
// CHECK-64-NEXT: (struct size=8 alignment=8 stride=8 num_extra_inhabitants=[[#num_extra_inhabitants_64bit]] bitwise_takable=1
4949
// CHECK-64-NEXT: (field name=context offset=0
5050
// CHECK-64-NEXT: (reference kind=strong refcounting=native)))))
5151

0 commit comments

Comments
 (0)