StringOptimization: fix a test for linux and windows.

This commit is contained in:
Erik Eckstein
2020-07-30 17:46:09 +02:00
parent ea81e2632b
commit 1b7bb4940a

View File

@@ -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