Files
swift-mirror/test/Frontend/enforce-exclusivity.swift
Jordan Rose 98949efe93 [test] Tweak tests to not depend on the host stdlib or SDK (#12423)
Otherwise, we get into trouble when only building iOS libraries and
then running tests (on macOS).

rdar://problem/33971531&33971705
2017-10-13 17:22:40 -07:00

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='