mirror of
https://github.com/apple/swift.git
synced 2026-03-04 18:24:35 +01:00
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.
8 lines
389 B
Swift
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'
|
|
|