File tree Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Expand file tree Collapse file tree 4 files changed +25
-7
lines changed Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -emit-module-path %t/resilient_struct.swiftmodule %S/../Inputs/resilient_struct.swift -enable-library-evolution
3
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module-path %t/resilient_objc_class.swiftmodule %S/../Inputs/resilient_objc_class.swift -I %t -enable-library-evolution -emit-objc-header-path %t/resilient_objc_class.h
4
+
5
+ // RUN: cp %S/Inputs/custom-modules/module.map %t/module.map
6
+
7
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %S/resilient-ancestry.swift -module-name resilient -emit-objc-header-path %t/resilient.h -I %t -enable-library-evolution -enable-resilient-objc-class-stubs
8
+ // RUN: %FileCheck %S/resilient-ancestry.swift < %t/resilient.h
9
+ // RUN: %check-in-clang %t/resilient.h -I %t
10
+
11
+ // REQUIRES: objc_interop
12
+ // REQUIRES: swift_stable_abi
Original file line number Diff line number Diff line change 10
10
// RUN: %FileCheck %s --check-prefix=NO-STUBS < %t/resilient.h
11
11
// RUN: %check-in-clang %t/resilient.h -I %t
12
12
13
- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -module-name resilient -emit-objc-header-path %t/resilient.h -I %t -enable-library-evolution -enable-resilient-objc-class-stubs
14
- // RUN: %FileCheck %s < %t/resilient.h
15
- // RUN: %check-in-clang %t/resilient.h -I %t
16
-
17
13
// REQUIRES: objc_interop
18
14
15
+ // See also resilient-ancestry.swift, for the stable ABI deployment target test.
16
+
19
17
import Foundation
20
18
import resilient_objc_class
21
19
Original file line number Diff line number Diff line change 2
2
3
3
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -verify
4
4
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -disable-nskeyedarchiver-diagnostics 2>&1 | %FileCheck -check-prefix CHECK-NO-DIAGS %s
5
-
6
5
// RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -dump-ast -target %target-pre-stable-abi-triple > %t/old.ast
7
- // RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %s -dump-ast -target %target-stable-abi-triple > %t/new.ast
8
6
9
7
// RUN: %FileCheck --check-prefix=CHECK-OLD %s < %t/old.ast
10
8
// RUN: %FileCheck --check-prefix=NEGATIVE %s < %t/old.ast
11
- // RUN: %FileCheck --check-prefix=NEGATIVE --check-prefix=NEGATIVE-NEW %s < %t/new.ast
12
9
13
10
// REQUIRES: objc_interop
14
11
12
+ // See also nscoding_stable_abi.swift, for the stable ABI deployment
13
+ // target test.
14
+
15
15
// CHECK-NO-DIAGS-NOT: NSCoding
16
16
// CHECK-NO-DIAGS-NOT: unstable
17
17
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+
3
+ // RUN: not %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -parse-as-library -swift-version 4 %S/nscoding.swift -dump-ast -target %target-stable-abi-triple > %t/new.ast
4
+
5
+ // RUN: %FileCheck --check-prefix=NEGATIVE --check-prefix=NEGATIVE-NEW %S/nscoding.swift < %t/new.ast
6
+
7
+ // REQUIRES: objc_interop
8
+ // REQUIRES: swift_stable_abi
You can’t perform that action at this time.
0 commit comments