mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
To allow us to start testing language changes tied to a future Swift 6 mode without actually *shipping* a Swift 6 mode to customers who might accidentally use it before it's ready. This commit also adds parallel tests for a number of already existing (but untested) Swift 6 mode behaviors.
11 lines
454 B
Swift
11 lines
454 B
Swift
// Tests temporary -swift-version 6 behavior in compilers with asserts disabled,
|
|
// where we don't allow -swift-version 6 to keep it out of release compilers.
|
|
|
|
// UNSUPPORTED: asserts
|
|
|
|
// RUN: not %target-swiftc_driver -swift-version 6 -typecheck %s 2>&1 | %FileCheck --check-prefix ERROR_6 %s
|
|
|
|
// ERROR_6: <unknown>:0: error: invalid value '6' in '-swift-version 6'
|
|
// ERROR_7: <unknown>:0: note: valid arguments to '-swift-version'
|
|
// ERROR_7-NOT: '6'
|