Files
swift-mirror/test/Frontend/experimental-features-asserts.swift
Allan Shortlidge 12fccfc4e0 Frontend: Really allow any experimental feature when compiling a module interface.
The fix for https://github.com/apple/swift/pull/72632 was not sufficient
because when modules are built from textual interface that happens in a
sub-invocation which does not have typecheck-from-interface or
compile-from-interface requested action. Instead of checking a requested
action, set a language option to control whether non-production experimental
features are allowed.

Resolves rdar://125561443
2024-03-28 14:48:15 -07:00

13 lines
484 B
Swift

// This test verifies that command line parsing allows use of any features with
// an asserts compilers.
// REQUIRES: asserts
// 'AccessLevelOnImport' is allowed in production
// RUN: %target-swift-frontend -typecheck %s -enable-experimental-feature AccessLevelOnImport -verify
// 'ParserValidation' is NOT allowed in production, but we are building with an asserts compiler.
// RUN: %target-swift-frontend -typecheck %s -enable-experimental-feature ParserValidation
import Swift