Skip to content

Commit 41f3451

Browse files
committed
[Test] Exercised TypeLowering verification.
1 parent c0a3c16 commit 41f3451

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

test/SILGen/bitwise_copyable.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,20 @@ struct B<T> {
2222
func doit() -> B<Int> {
2323
return .init(t: 0)
2424
}
25+
26+
struct Conditional<T> {
27+
var t: T
28+
}
29+
extension Conditional : _BitwiseCopyable where T : _BitwiseCopyable {}
30+
31+
func doit() -> B<Conditional<Int>> {
32+
.init(t: .init(t: 0))
33+
}
34+
35+
enum Context<T> {
36+
struct Here {
37+
var t: T
38+
}
39+
}
40+
41+
func doit() -> Context<Int>.Here { .init(t: 0) }

0 commit comments

Comments
 (0)