Skip to content

Commit 8a35b07

Browse files
committed
[Test] Verify BC-ness of raw-value enums.
1 parent 7886d9e commit 8a35b07

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/Sema/bitwise_copyable_2.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,17 @@ func passBuiltinFloat16(_ f: Builtin.FPIEEE16) { take(f) }
4848
@available(SwiftStdlib 5.3, *)
4949
func passFloat16(_ f: Float16) { take(f) }
5050
#endif
51+
52+
enum E_Raw_Int : Int {
53+
case one = 1
54+
case sixty_three = 63
55+
}
56+
57+
func passE_Raw_Int(_ e: E_Raw_Int) { take(e) }
58+
59+
enum E_Raw_String : String {
60+
case one = "one"
61+
case sixty_three = "sixty three"
62+
}
63+
64+
func passE_Raw_String(_ e: E_Raw_String) { take(e) }

0 commit comments

Comments
 (0)