File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change
1
+ /// Similar test to cdecl-official but gated to objc-interop compatibility
2
+
3
+ // RUN: %empty-directory(%t)
4
+ // RUN: split-file %S/cdecl-official.swift %t --leading-lines
5
+
6
+ /// Generate cdecl.h
7
+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) \
8
+ // RUN: %t/Lib.swift -emit-module -verify -o %t -emit-module-doc \
9
+ // RUN: -emit-clang-header-path %t/cdecl.h \
10
+ // RUN: -enable-experimental-feature CDecl
11
+
12
+ /// Check cdecl.h directly
13
+ // RUN: %check-in-clang %t/cdecl.h
14
+ // RUN: %check-in-clang-cxx %t/cdecl.h
15
+
16
+ /// Build an Objective-C client against cdecl.h
17
+ // RUN: %clang -c %t/Client.c -fmodules -I %t \
18
+ // RUN: -F %S/../Inputs/clang-importer-sdk-path/frameworks \
19
+ // RUN: -I %clang-include-dir -Werror \
20
+ // RUN: -isysroot %S/../Inputs/clang-importer-sdk
21
+
22
+ // REQUIRES: swift_feature_CDecl
23
+ // REQUIRES: objc_interop
Original file line number Diff line number Diff line change 4
4
/// Generate cdecl.h
5
5
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) \
6
6
// RUN: %t/Lib.swift -emit-module -verify -o %t -emit-module-doc \
7
- // RUN: -emit-objc -header-path %t/cdecl.h \
7
+ // RUN: -emit-clang -header-path %t/cdecl.h \
8
8
// RUN: -enable-experimental-feature CDecl
9
9
10
10
/// Check cdecl.h directly
11
11
// RUN: %FileCheck %s --input-file %t/cdecl.h
12
- // RUN: %check-in-clang %t/cdecl.h
13
12
// RUN: %check-in-clang-c %t/cdecl.h -Wnullable-to-nonnull-conversion
14
- // RUN: %check-in-clang-cxx %t/cdecl.h
15
13
16
14
/// Build a client against cdecl.h
17
15
// RUN: %clang -c %t/Client.c -fmodules -I %t \
You can’t perform that action at this time.
0 commit comments