mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Optional language features don't have a specific "-enable-*" flag, because
they're rare and don't fit the same upcoming/experimental distinction. Add
a flag_name field to provide the flag name as well.
(cherry picked from commit 414adb55ca)
14 lines
557 B
Swift
14 lines
557 B
Swift
// RUN: %target-swift-frontend -print-supported-features | %FileCheck %s
|
|
|
|
// CHECK: "features": {
|
|
// CHECK-NEXT: "optional": [
|
|
// CHECK: { "name": "StrictMemorySafety", "migratable": true, "categories": ["StrictMemorySafety"], "flag_name": "-strict-memory-safety" }
|
|
// CHECK-NEXT: ],
|
|
// CHECK-NEXT: "upcoming": [
|
|
// CHECK: { "name": "InferIsolatedConformances", "migratable": true, "categories": ["IsolatedConformances"], "enabled_in": "7" },
|
|
// CHECK: ],
|
|
// CHECK: "experimental": [
|
|
// CHECK: { "name": "{{.*}}" }
|
|
// CHECK: ]
|
|
// CHECK: }
|