Skip to content

Commit c6fc43e

Browse files
committed
---
yaml --- r: 347882 b: refs/heads/master c: a2fec99 h: refs/heads/master
1 parent 0f4aa3e commit c6fc43e

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 364377b7d8f4a6ff7cfd8a08391b9b28900dbb0e
2+
refs/heads/master: a2fec998e899269038a6cf5d234354e6f34f7a1e
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-build-swift -lswiftSwiftReflectionTest %s -o %t/existentials_objc
33
// RUN: %target-codesign %t/existentials_objc
4-
// RUN: %target-run %target-swift-reflection-test %t/existentials_objc | %FileCheck %s
4+
// RUN: %target-run %target-swift-reflection-test %t/existentials_objc > %t.txt
5+
// RUN: grep SkipTheTest %t.txt || %FileCheck %s < %t.txt
56

67
// REQUIRES: objc_interop
78
// REQUIRES: executable_test
@@ -15,15 +16,21 @@ import Foundation
1516

1617
import SwiftReflectionTest
1718

18-
// Imported class wrapped in AnyObject
19-
20-
// CHECK: Type reference:
21-
// CHECK: (objective_c_class name=NSObject)
22-
reflect(object: NSObject())
23-
24-
// Tagged pointer wrapped in AnyObject
25-
// CHECK: Type reference:
26-
// CHECK: (objective_c_class name=__NSCFNumber)
27-
reflect(object: NSNumber(123))
19+
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
20+
// Imported class wrapped in AnyObject
21+
22+
// CHECK: Type reference:
23+
// CHECK: (objective_c_class name=NSObject)
24+
reflect(object: NSObject())
25+
26+
// Tagged pointer wrapped in AnyObject
27+
// CHECK: Type reference:
28+
// CHECK: (objective_c_class name=__NSCFNumber)
29+
reflect(object: NSNumber(123))
30+
} else {
31+
// The Swift 5.0 libraries don't support this test.
32+
class SkipTheTest {}
33+
reflect(object: SkipTheTest())
34+
}
2835

2936
doneReflecting()

0 commit comments

Comments
 (0)