mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #80046 from rintaro/old-ownership-spellings
[ASTGen] map oldOwnershipOperatorSpellings feature flag
This commit is contained in:
@@ -77,6 +77,8 @@ extension Parser.ExperimentalFeatures {
|
|||||||
mapFeature(.CoroutineAccessors, to: .coroutineAccessors)
|
mapFeature(.CoroutineAccessors, to: .coroutineAccessors)
|
||||||
mapFeature(.ValueGenerics, to: .valueGenerics)
|
mapFeature(.ValueGenerics, to: .valueGenerics)
|
||||||
mapFeature(.ABIAttribute, to: .abiAttribute)
|
mapFeature(.ABIAttribute, to: .abiAttribute)
|
||||||
|
// TODO: mapFeature(.KeypathWithMethodMembers, to: .keypathWithMethodMembers)
|
||||||
|
mapFeature(.OldOwnershipOperatorSpellings, to: .oldOwnershipOperatorSpellings)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,19 @@
|
|||||||
// RUN: %empty-directory(%t)
|
// RUN: %empty-directory(%t)
|
||||||
// RUN: %target-swift-frontend-dump-parse -target %target-swift-5.1-abi-triple -enable-experimental-move-only -enable-experimental-feature ParserASTGen \
|
// RUN: %target-swift-frontend-dump-parse -target %target-swift-5.1-abi-triple -enable-experimental-move-only -enable-experimental-feature ParserASTGen \
|
||||||
|
// RUN: -enable-experimental-feature OldOwnershipOperatorSpellings \
|
||||||
// RUN: | %sanitize-address > %t/astgen.ast
|
// RUN: | %sanitize-address > %t/astgen.ast
|
||||||
// RUN: %target-swift-frontend-dump-parse -target %target-swift-5.1-abi-triple -enable-experimental-move-only \
|
// RUN: %target-swift-frontend-dump-parse -target %target-swift-5.1-abi-triple -enable-experimental-move-only \
|
||||||
|
// RUN: -enable-experimental-feature OldOwnershipOperatorSpellings \
|
||||||
// RUN: | %sanitize-address > %t/cpp-parser.ast
|
// RUN: | %sanitize-address > %t/cpp-parser.ast
|
||||||
|
|
||||||
// RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
|
// RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
|
||||||
|
|
||||||
// RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple -enable-experimental-feature ParserASTGen)
|
// RUN: %target-run-simple-swift(-target %target-swift-5.1-abi-triple -enable-experimental-feature OldOwnershipOperatorSpellings -enable-experimental-feature ParserASTGen)
|
||||||
|
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: swift_swift_parser
|
// REQUIRES: swift_swift_parser
|
||||||
// REQUIRES: swift_feature_ParserASTGen
|
// REQUIRES: swift_feature_ParserASTGen
|
||||||
|
// REQUIRES: swift_feature_OldOwnershipOperatorSpellings
|
||||||
|
|
||||||
// rdar://116686158
|
// rdar://116686158
|
||||||
// UNSUPPORTED: asan
|
// UNSUPPORTED: asan
|
||||||
|
|||||||
Reference in New Issue
Block a user