mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
18 lines
653 B
Swift
18 lines
653 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %build-clang-importer-objc-overlays
|
|
|
|
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk-nosource) -I %t -I %S/Inputs/custom-modules -print-module -source-filename %s -module-to-print=CompatibilityAlias > %t.printed.CompatibilityAlias.txt
|
|
// RUN: %FileCheck %s -check-prefix=PRINT -strict-whitespace < %t.printed.CompatibilityAlias.txt
|
|
// RUN: %target-typecheck-verify-swift -sdk %clang-importer-sdk -I %S/Inputs/custom-modules -I %t
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
// PRINT: typealias StringCheese = NSString
|
|
|
|
import CompatibilityAlias
|
|
|
|
func dontMove(cheese: StringCheese) -> StringCheese {
|
|
return cheese
|
|
}
|
|
|