Files
swift-mirror/test/IRGen/isolated_conformance.swift
Doug Gregor 3380331e7e [SE-0470] Enable isolated conformances by default
The IsolatedConformances feature moves to a normal, supported feature.
Remove all of the experimental-feature flags on test cases and such.

The InferIsolatedConformances feature moves to an upcoming feature for
Swift 7. This should become an adoptable feature, adding "nonisolated"
where needed.
2025-04-13 15:41:53 -07:00

22 lines
581 B
Swift

// RUN: %target-swift-frontend -primary-file %s -emit-ir -swift-version 6 | %FileCheck %s -DINT=i%target-ptrsize
// REQUIRES: PTRSIZE=64
// REQUIRES: concurrency
// UNSUPPORTED: CPU=arm64e
protocol P {
func f()
}
// CHECK-LABEL: @"$s20isolated_conformance1XVyxGAA1PAAMc" =
// CHECK-SAME: ptr @"$s20isolated_conformance1PMp"
// CHECK-SAME: ptr @"$s20isolated_conformance1XVMn"
// CHECK-SAME: ptr @"$s20isolated_conformance1XVyxGAA1PAAWP
// CHECK-SAME: i32 524288
// CHECK-SAME: ScM
// CHECK-SAME: $sScMs11GlobalActorsMc"
@MainActor
struct X<T>: @MainActor P {
func f() { }
}