File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
-
3
2
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t -I %S/Inputs/xref-nested-clang-type/ %s -module-name Lib
4
-
5
3
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %t -I %S/Inputs/xref-nested-clang-type/ %s -DCLIENT -verify
6
4
5
+ // RUN: %empty-directory(%t)
6
+ // RUN: cp %S/Inputs/xref-nested-clang-type/NestedClangTypes.h %t
7
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t -import-objc-header %t/NestedClangTypes.h %s -module-name Lib -DNO_MODULE
8
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %t -import-objc-header %t/NestedClangTypes.h %s -DCLIENT -verify
9
+
10
+ // RUN: %empty-directory(%t)
11
+ // RUN: cp %S/Inputs/xref-nested-clang-type/NestedClangTypes.h %t
12
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t -import-objc-header %t/NestedClangTypes.h -pch-output-dir %t/PCHCache %s -module-name Lib -DNO_MODULE
13
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %t -pch-output-dir %t/PCHCache -import-objc-header %t/NestedClangTypes.h %s -DCLIENT -verify
14
+
7
15
#if CLIENT
8
16
9
17
import Lib
@@ -17,7 +25,9 @@ func test(x: MyCode) {}
17
25
18
26
#else // CLIENT
19
27
28
+ #if !NO_MODULE
20
29
import NestedClangTypes
30
+ #endif
21
31
22
32
public typealias MyOuter = Outer
23
33
public typealias MyInner = Outer . InterestingValue
You can’t perform that action at this time.
0 commit comments