Test: Expect warning on deprecated @_implementationOnly in tests

This commit is contained in:
Alexis Laferrière
2024-04-22 10:19:14 -07:00
parent ff797cfd66
commit 0a25248e4b
15 changed files with 22 additions and 1 deletions

View File

@@ -29,7 +29,7 @@
import ShadowyHorror
// OTHER-DAG: ShadowyHorror.module_shadowing:{{[0-9]+:[0-9]+}}: warning: public class 'ShadowyHorror.module_shadowing' shadows module 'module_shadowing', which may cause failures when importing 'module_shadowing' or its clients in some configurations; please rename either the class 'ShadowyHorror.module_shadowing' or the module 'module_shadowing', or see https://github.com/apple/swift/issues/56573 for workarounds{{$}}
@_implementationOnly import TestModule
internal import TestModule
#endif
public struct ShadowyHorror {