mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Its functionality has been superseded by `@_spiOnly import`. There are no longer any known clients and the flag was already unsupported in Swift 6, so the functionality is now removed (but the flag is only deprecated for Swift 5). Resolves rdar://136867210.
12 lines
492 B
Swift
12 lines
492 B
Swift
// RUN: %target-swift-frontend -typecheck %s -swift-version 5 \
|
|
// RUN: -experimental-spi-imports 2>&1 | %FileCheck %s -check-prefix=CHECK-5
|
|
|
|
// RUN: not %target-swift-frontend -typecheck %s -swift-version 6 \
|
|
// RUN: -experimental-spi-imports 2>&1 | %FileCheck %s -check-prefix=CHECK-6
|
|
|
|
/// The flag is deprecated before Swift 6.
|
|
// CHECK-5: flag '-experimental-spi-imports' is deprecated
|
|
|
|
/// The flag is rejected in Swift 6.
|
|
// CHECK-6: flag '-experimental-spi-imports' is unsupported
|