Skip to content

Commit fd92782

Browse files
committed
Merge branch 'old-ownership-spellings' into astgen-enable
2 parents 1114204 + a7b427d commit fd92782

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/ASTGen/Sources/ASTGen/SourceFile.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ extension Parser.ExperimentalFeatures {
7777
mapFeature(.CoroutineAccessors, to: .coroutineAccessors)
7878
mapFeature(.ValueGenerics, to: .valueGenerics)
7979
mapFeature(.ABIAttribute, to: .abiAttribute)
80+
// TODO: mapFeature(.KeypathWithMethodMembers, to: .keypathWithMethodMembers)
81+
mapFeature(.OldOwnershipOperatorSpellings, to: .oldOwnershipOperatorSpellings)
8082
}
8183
}
8284

test/ASTGen/exprs.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend-dump-parse -target %target-swift-5.1-abi-triple -enable-experimental-move-only -enable-experimental-feature ParserASTGen \
3+
// RUN: -enable-experimental-feature OldOwnershipOperatorSpellings \
34
// RUN: | %sanitize-address > %t/astgen.ast
45
// RUN: %target-swift-frontend-dump-parse -target %target-swift-5.1-abi-triple -enable-experimental-move-only \
6+
// RUN: -enable-experimental-feature OldOwnershipOperatorSpellings \
57
// RUN: | %sanitize-address > %t/cpp-parser.ast
68

79
// RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
810

9-
// RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple -enable-experimental-feature ParserASTGen)
11+
// RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple -enable-experimental-feature OldOwnershipOperatorSpellings -enable-experimental-feature ParserASTGen)
1012

1113
// REQUIRES: executable_test
1214
// REQUIRES: swift_swift_parser
1315
// REQUIRES: swift_feature_ParserASTGen
16+
// REQUIRES: swift_feature_OldOwnershipOperatorSpellings
1417

1518
// rdar://116686158
1619
// UNSUPPORTED: asan

0 commit comments

Comments
 (0)