Skip to content

Commit ac567ac

Browse files
committed
[test] Test previous commits with bridging headers too.
(both precompiled and non-precompiled)
1 parent bc460a2 commit ac567ac

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

test/Serialization/xref-nested-clang-type.swift

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
// RUN: %empty-directory(%t)
2-
32
// 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-
53
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %t -I %S/Inputs/xref-nested-clang-type/ %s -DCLIENT -verify
64

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+
715
#if CLIENT
816

917
import Lib
@@ -17,7 +25,9 @@ func test(x: MyCode) {}
1725

1826
#else // CLIENT
1927

28+
#if !NO_MODULE
2029
import NestedClangTypes
30+
#endif
2131

2232
public typealias MyOuter = Outer
2333
public typealias MyInner = Outer.InterestingValue

0 commit comments

Comments
 (0)