mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
gccrs: 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 <pierre-emmanuel.patry@embecosm.com>
This commit is contained in:
committed by
Arthur Cohen
parent
8517601c81
commit
652732d49d
@@ -41,9 +41,9 @@ extern "C" {
|
||||
|
||||
fn print(b: bool) {
|
||||
if b {
|
||||
unsafe { puts("true" as *const str as *const i8) }
|
||||
unsafe { puts("true\0" as *const str as *const i8) }
|
||||
} else {
|
||||
unsafe { puts("false" as *const str as *const i8) }
|
||||
unsafe { puts("false\0" as *const str as *const i8) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user