Skip to content

Commit cdae1ae

Browse files
CohenArthurP-E-P
andcommitted
derive(PartialEq): Fix raw strings in test
gcc/testsuite/ChangeLog: * rust/execute/torture/derive-partialeq2.rs: Add missing terminating nul char. Co-authored-by: Pierre-Emmanuel Patry <[email protected]>
1 parent b46f9f1 commit cdae1ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/testsuite/rust/execute/torture/derive-partialeq2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ extern "C" {
4141

4242
fn print(b: bool) {
4343
if b {
44-
unsafe { puts("true" as *const str as *const i8) }
44+
unsafe { puts("true\0" as *const str as *const i8) }
4545
} else {
46-
unsafe { puts("false" as *const str as *const i8) }
46+
unsafe { puts("false\0" as *const str as *const i8) }
4747
}
4848
}
4949

0 commit comments

Comments
 (0)