Skip to content

Commit 22acb2f

Browse files
authored
Merge pull request #35852 from DougGregor/backward-compat-requires-concurrency
2 parents 04b21d0 + b1aa56d commit 22acb2f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/ModuleInterface/features.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
// RUN: %target-swift-frontend -typecheck -swift-version 5 -module-name FeatureTest -emit-module-interface-path %t/FeatureTest.swiftinterface -enable-library-evolution -enable-experimental-concurrency %s
44
// RUN: %FileCheck %s < %t/FeatureTest.swiftinterface --check-prefix CHECK
55

6-
// Make sure we can parse the file without concurrency enabled
6+
// REQUIRES: concurrency
7+
8+
// Ensure that when we emit a Swift interface that makes use of new features,
9+
// the uses of those features are guarded by appropriate #if's that allow older
10+
// compilers to skip over the uses of newer features.
711

812
// CHECK: #if compiler(>=5.3) && $Actors
913
// CHECK-NEXT: actor {{.*}} MyActor

0 commit comments

Comments
 (0)