Files
swift-mirror/test/embedded/exclusivity_experimental.swift
Doug Gregor cc2fc8ae65 [Embedded] Put dynamic exclusivity behind a second experimental feature
We need to stage in the behavior change to enable dynamic exclusivity
checking for Embedded Swift. For now, ignore
`-enforce-exclusivity=checked` in Embedded Swift unless the
experimental feature `EmbeddedDynamicExclusivity` is also enabled.

Addresses rdar://168618037, a regression in Embedded Swift code that
is passing `-enforce-exclusivity=checked` explicitly.
2026-01-22 21:22:19 -08:00

8 lines
389 B
Swift

// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -typecheck -verify -enforce-exclusivity=checked 2>&1 | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: swift_feature_Embedded
// CHECK: warning: '-enforce-exclusivity=checked' is ignored in Embedded Swift unless also enabled by '-enable-experimental-feature EmbeddedDynamicExclusivity'