File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ func unsupportedOn32bit() -> Never { _conditionallyUnreachable() }
31
31
32
32
#else
33
33
@_fixed_layout
34
- public // @testable
35
- struct _SmallUTF8String {
34
+ @ usableFromInline
35
+ internal struct _SmallUTF8String {
36
36
@usableFromInline
37
37
typealias _RawBitPattern = ( low: UInt , high: UInt )
38
38
@@ -61,12 +61,11 @@ struct _SmallUTF8String {
61
61
//
62
62
extension _SmallUTF8String {
63
63
@inlinable
64
- public // @testable
65
- static var capacity : Int { return 15 }
64
+ static internal var capacity : Int { return 15 }
66
65
67
66
#if _runtime(_ObjC)
68
- public // @testable
69
- init ? ( _cocoaString cocoa: _CocoaString ) {
67
+ @ usableFromInline
68
+ internal init ? ( _cocoaString cocoa: _CocoaString ) {
70
69
#if arch(i386) || arch(arm)
71
70
return nil // Never form small strings on 32-bit
72
71
#else
@@ -89,8 +88,7 @@ extension _SmallUTF8String {
89
88
#endif // _runtime(_ObjC)
90
89
91
90
@inlinable
92
- public // @testable
93
- init ? < C: RandomAccessCollection > ( _ codeUnits: C ) where C. Element == UInt16 {
91
+ internal init ? < C: RandomAccessCollection > ( _ codeUnits: C ) where C. Element == UInt16 {
94
92
#if arch(i386) || arch(arm)
95
93
return nil // Never form small strings on 32-bit
96
94
#else
Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift
1
+ // RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out -O
2
+ // RUN: %target-run %t.out
3
+
2
4
// REQUIRES: executable_test
3
5
// REQUIRES: objc_interop
4
6
// REQUIRES: CPU=arm64 || CPU=x86_64
You can’t perform that action at this time.
0 commit comments