Skip to content

Commit e709192

Browse files
authored
rewrite: add #[derive(Clone)] test case (#958)
It turns out #952 was addressed indirectly via #956. This adds a test case to demonstrate the functionality is now working as expected.
2 parents 8dcef23 + 2d409c4 commit e709192

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

c2rust-analyze/tests/filecheck/aggregate1.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ pub unsafe fn repeat() {
5454
let x = 22;
5555
let _buf: [u32; 22] = [x; 22];
5656
}
57+
58+
// CHECK-DAG: #[derive(Clone)]
59+
#[derive(Clone)]
60+
struct Foo {
61+
x: i32,
62+
}

0 commit comments

Comments
 (0)