mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
23 lines
816 B
Swift
23 lines
816 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %s %t --leading-lines
|
|
|
|
// RUN: %target-swift-frontend -emit-module %t/Lib.swift \
|
|
// RUN: -enable-library-evolution -swift-version 5 \
|
|
// RUN: -emit-module-path %t/Lib.swiftmodule
|
|
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
|
|
// RUN: -enable-library-evolution -swift-version 5 \
|
|
// RUN: -verify
|
|
// RUN: %target-swift-frontend -typecheck %t/Client.swift -I %t \
|
|
// RUN: -enable-library-evolution -swift-version 5 \
|
|
// RUN: -enable-upcoming-feature InternalImportsByDefault \
|
|
// RUN: -verify
|
|
|
|
//--- Lib.swift
|
|
public struct SomeType {}
|
|
|
|
//--- Client.swift
|
|
@_implementationOnly import Lib
|
|
// expected-warning @-1 {{'@_implementationOnly' is deprecated, use 'internal import' instead}} {{1-21=internal}}
|
|
|
|
internal func foo(_: SomeType) {}
|