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> {
178178 @inlinable
179179 @inline ( __always)
180180 internal init ( native: Native ) {
181+ #if !$Embedded
181182 _internalInvariant ( _usesNativeSwiftReferenceCounting ( NativeClass . self) )
183+ #endif
182184 rawValue = native
183185 }
184186
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ split_embedded_sources(
179179 EMBEDDED StringRangeReplaceableCollection.swift
180180 EMBEDDED StringStorage.swift
181181 EMBEDDED StringStorageBridge.swift
182- NORMAL StringSwitch.swift
182+ EMBEDDED StringSwitch.swift
183183 EMBEDDED StringTesting.swift
184184 EMBEDDED StringUnicodeScalarView.swift
185185 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