File tree Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Expand file tree Collapse file tree 3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,9 @@ internal struct _BridgeStorage<NativeClass: AnyObject> {
178
178
@inlinable
179
179
@inline ( __always)
180
180
internal init ( native: Native ) {
181
+ #if !$Embedded
181
182
_internalInvariant ( _usesNativeSwiftReferenceCounting ( NativeClass . self) )
183
+ #endif
182
184
rawValue = native
183
185
}
184
186
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ split_embedded_sources(
179
179
EMBEDDED StringRangeReplaceableCollection.swift
180
180
EMBEDDED StringStorage.swift
181
181
EMBEDDED StringStorageBridge.swift
182
- NORMAL StringSwitch.swift
182
+ EMBEDDED StringSwitch.swift
183
183
EMBEDDED StringTesting.swift
184
184
EMBEDDED StringUnicodeScalarView.swift
185
185
EMBEDDED StringUTF16View.swift
Original file line number Diff line number Diff line change
1
+ // RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -wmo -Xlinker %swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos/libswiftUnicodeDataTables.a) | %FileCheck %s
2
+
3
+ // REQUIRES: swift_in_compiler
4
+ // REQUIRES: executable_test
5
+ // REQUIRES: optimized_stdlib
6
+ // REQUIRES: OS=macosx
7
+
8
+ enum MyEnum : String {
9
+ case foo
10
+ case bar
11
+ }
12
+
13
+ var e = MyEnum . foo
14
+ print ( e. rawValue)
15
+ e = MyEnum . bar
16
+ print ( e. rawValue)
17
+ // CHECK: foo
18
+ // CHECK: bar
You can’t perform that action at this time.
0 commit comments