Skip to content

Commit 7f5228f

Browse files
committed
improve a test to cover ~Copyable
1 parent 4a9da52 commit 7f5228f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/SILOptimizer/moveonly_class_inits_end_to_end.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// A test that makes sure end to end in a copyable class containing a
44
// non-copyable type, in the init, we only have a single destroy_addr.
55

6+
7+
// CHECK: public struct MO : ~Copyable {
68
public struct MO : ~Copyable {
79
var x: Int8 = 0
810
deinit { print("destroyed MO") }

0 commit comments

Comments
 (0)