Skip to content

Commit 6cc2399

Browse files
committed
[Sema] delete superfluous test about errors on imports of public modules
1 parent fb15513 commit 6cc2399

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

test/Sema/implementation-only-import-suggestion-as-error.swift

Lines changed: 0 additions & 29 deletions
This file was deleted.

test/Sema/implementation-only-import-suggestion.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
// RUN: %t/sdk/System/Library/PrivateFrameworks/PrivateSwift.framework/Modules/PrivateSwift.swiftmodule/source.swift \
1212
// RUN: -o %t/sdk/System/Library/PrivateFrameworks/PrivateSwift.framework/Modules/PrivateSwift.swiftmodule/%target-swiftmodule-name
1313

14-
/// Expect warnings when building a public client.
14+
/// Expect errors when building a public client.
1515
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk -module-cache-path %t %s \
1616
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
1717
// RUN: -library-level api -verify -D PUBLIC_IMPORTS -module-name MainLib
1818

19-
/// Expect no warnings when building an SPI client.
19+
/// Expect no errors when building an SPI client.
2020
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk -module-cache-path %t %s \
2121
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
2222
// RUN: -library-level spi -D PUBLIC_IMPORTS -module-name MainLib
@@ -26,7 +26,7 @@
2626
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
2727
// RUN: -library-level spi -D PUBLIC_IMPORTS -module-name MainLib
2828

29-
/// Expect no warnings when building a client with some other library level.
29+
/// Expect no errors when building a client with some other library level.
3030
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk -module-cache-path %t %s \
3131
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
3232
// RUN: -D PUBLIC_IMPORTS -module-name MainLib
@@ -42,7 +42,7 @@ import PublicClang_Private // expected-error{{private module 'PublicClang_Privat
4242
import FullyPrivateClang // expected-error{{private module 'FullyPrivateClang' is imported publicly from the public module 'MainLib'}}
4343
@_exported import MainLib // expected-warning{{private module 'MainLib' is imported publicly from the public module 'MainLib'}}
4444

45-
/// Expect no warnings with implementation-only imports.
45+
/// Expect no errors with implementation-only imports.
4646
// RUN: %target-swift-frontend -typecheck -sdk %t/sdk -module-cache-path %t %s \
4747
// RUN: -F %t/sdk/System/Library/PrivateFrameworks/ \
4848
// RUN: -library-level api -D IMPL_ONLY_IMPORTS

0 commit comments

Comments
 (0)