Skip to content

Commit 85ea5ff

Browse files
authored
[TBDGen][Test] Check implied Obj-C symbol generation based on stable swift version (#72138)
1 parent 1a84094 commit 85ea5ff

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/TBD/multimodule-implied-objc.swift

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,34 @@
11
// REQUIRES: VENDOR=apple
2-
// XFAIL: OS=ios && (CPU=arm64e || CPU=arm64)
32
// RUN: %empty-directory(%t)
43
// RUN: %empty-directory(%t/cache)
54
// RUN: split-file %s %t
65

76
/// Create Swift modules to import.
87
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) \
98
// RUN: -module-name IndirectMixedDependency -I %t \
10-
// RUN: -enable-library-evolution -swift-version 5 \
9+
// RUN: -enable-library-evolution \
10+
// RUN: -target %target-swift-abi-5.8-triple \
1111
// RUN: -emit-module %t/IndirectMixedDependency.swift \
1212
// RUN: -emit-module-path %t/IndirectMixedDependency.swiftmodule
1313
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) \
14-
// RUN: -enable-library-evolution -swift-version 5 \
14+
// RUN: -enable-library-evolution \
15+
// RUN: -target %target-swift-abi-5.8-triple \
1516
// RUN: -emit-module %t/SwiftDependency.swift \
1617
// RUN: -module-name SwiftDependency -I %t\
1718
// RUN: -emit-module-path %t/SwiftDependency.swiftmodule
1819

1920
// Generate TBD file.
2021
// RUN: %target-swift-frontend -I %t -module-cache-path %t/cache \
2122
// RUN: %t/Client.swift -emit-ir -o/dev/null -parse-as-library \
23+
// RUN: -target %target-swift-abi-5.8-triple \
2224
// RUN: -module-name client -validate-tbd-against-ir=missing \
2325
// RUN: -tbd-install_name client -emit-tbd -emit-tbd-path %t/client.tbd
2426

2527
// RUN: %validate-json %t/client.tbd | %FileCheck %s
2628

27-
// CHECK: "_OBJC_METACLASS_$__TtCO6client11extendedAPI6Square"
28-
// CHECK-NOT: "objc_class"
29-
// CHECK-NOT: _OBJC_C
29+
// CHECK-NOT: "CLASS_$__TtCO6client11extendedAPI6Square"
30+
// CHECK: "objc_class"
31+
// CHECK: "_TtCO6client11extendedAPI6Square"
3032

3133
//--- module.modulemap
3234
module IndirectMixedDependency {

0 commit comments

Comments
 (0)