mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Migrate PrintAsObjC tests to Swift 4
I didn't migrate test/PrintAsObjC/versioned.swift, because it explicitly checks the Swift 3 projection of some APIs.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Please keep this file in alphabetical order!
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules/ -F %S/Inputs/ -emit-module -o %t %s -disable-objc-attr-requires-foundation-module -swift-version 3
|
||||
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules/ -F %S/Inputs/ -parse-as-library %t/imports.swiftmodule -typecheck -emit-objc-header-path %t/imports.h -import-objc-header %S/../Inputs/empty.h -disable-objc-attr-requires-foundation-module -swift-version 3
|
||||
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules/ -F %S/Inputs/ -emit-module -o %t %s -disable-objc-attr-requires-foundation-module
|
||||
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules/ -F %S/Inputs/ -parse-as-library %t/imports.swiftmodule -typecheck -emit-objc-header-path %t/imports.h -import-objc-header %S/../Inputs/empty.h -disable-objc-attr-requires-foundation-module
|
||||
// RUN: %FileCheck %s < %t/imports.h
|
||||
// RUN: %FileCheck -check-prefix=NEGATIVE %s < %t/imports.h
|
||||
// RUN: %check-in-clang %t/imports.h -I %S/Inputs/custom-modules/ -F %S/Inputs/
|
||||
@@ -41,19 +41,19 @@ import MostlyPrivate1_Private
|
||||
import MostlyPrivate2_Private
|
||||
|
||||
@objc class Test {
|
||||
let word: DWORD = 0
|
||||
let number: TimeInterval = 0.0
|
||||
@objc let word: DWORD = 0
|
||||
@objc let number: TimeInterval = 0.0
|
||||
|
||||
let baseI: BaseI = 0
|
||||
let baseII: BaseII = 0
|
||||
let baseIE: BaseIE = 0
|
||||
let baseE: BaseE = 0
|
||||
let baseEI: BaseEI = 0
|
||||
let baseEE: BaseEE = 0
|
||||
@objc let baseI: BaseI = 0
|
||||
@objc let baseII: BaseII = 0
|
||||
@objc let baseIE: BaseIE = 0
|
||||
@objc let baseE: BaseE = 0
|
||||
@objc let baseEI: BaseEI = 0
|
||||
@objc let baseEE: BaseEE = 0
|
||||
|
||||
// Deliberately use the private type before the public type.
|
||||
let mp1priv: MP1PrivateType = 0
|
||||
let mp1pub: MP1PublicType = 0
|
||||
@objc let mp1priv: MP1PrivateType = 0
|
||||
@objc let mp1pub: MP1PublicType = 0
|
||||
|
||||
let mp2priv: MP2PrivateType = 0
|
||||
@objc let mp2priv: MP2PrivateType = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user