Files
swift-mirror/test/Frontend/print-supported-features.swift
Doug Gregor 414adb55ca Add optional language features to the supported features output
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.
2025-05-22 11:07:13 +01:00

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: }