mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
StringOptimization: fix a test for linux and windows.
This commit is contained in:
@@ -105,9 +105,14 @@ printEmbeeded(testUnqualifiedLocalType())
|
||||
printEmbeeded(testQualifiedLocalType())
|
||||
|
||||
#if _runtime(_ObjC)
|
||||
// CHECK-OUTPUT: <NSObject>
|
||||
printEmbeeded(testObjcClassName(qualified: false))
|
||||
// CHECK-OUTPUT: <NSObject>
|
||||
printEmbeeded(testObjcClassName(qualified: true))
|
||||
|
||||
// Can't use check-output here, because for non ObjC runtimes it would not match.
|
||||
if testObjcClassName(qualified: false) != "NSObject" {
|
||||
fatalError()
|
||||
}
|
||||
if testObjcClassName(qualified: true) != "NSObject" {
|
||||
fatalError()
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user