mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Otherwise, we get into trouble when only building iOS libraries and then running tests (on macOS). rdar://problem/33971531&33971705
12 lines
668 B
Swift
12 lines
668 B
Swift
// Test command-line flags for enforcement of the law of exclusivity.
|
|
|
|
// RUN: %target-swift-frontend -enforce-exclusivity=checked %s -emit-silgen
|
|
// RUN: %target-swift-frontend -enforce-exclusivity=unchecked %s -emit-silgen
|
|
|
|
// Staging flags; eventually these will not be accepted.
|
|
// RUN: %target-swift-frontend -enforce-exclusivity=dynamic-only %s -emit-silgen
|
|
// RUN: %target-swift-frontend -enforce-exclusivity=none %s -emit-silgen
|
|
|
|
// RUN: not %target-swift-frontend -enforce-exclusivity=other %s -emit-silgen 2>&1 | %FileCheck -check-prefix=EXCLUSIVITY_UNRECOGNIZED %s
|
|
// EXCLUSIVITY_UNRECOGNIZED: unsupported argument 'other' to option '-enforce-exclusivity='
|