From 5599bf49cdf6d89f7e1f4e13b150b43d2cf6dca3 Mon Sep 17 00:00:00 2001 From: CohenArthur Date: Thu, 24 Apr 2025 18:41:11 +0200 Subject: 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 --- gcc/testsuite/rust/execute/torture/derive-partialeq2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/testsuite/rust/execute/torture/derive-partialeq2.rs b/gcc/testsuite/rust/execute/torture/derive-partialeq2.rs index 15374d9..70ed7dc 100644 --- a/gcc/testsuite/rust/execute/torture/derive-partialeq2.rs +++ b/gcc/testsuite/rust/execute/torture/derive-partialeq2.rs @@ -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) } } } -- cgit v1.1