Skip to content

Commit 14361c2

Browse files
committed
Feature oldOwnershipOperatorSpellings
1 parent da31340 commit 14361c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
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

0 commit comments

Comments
 (0)