]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Fix scan-assembler regexp in recurse2.rs
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 23 Jun 2025 16:33:54 +0000 (12:33 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 5 Aug 2025 14:36:51 +0000 (16:36 +0200)
gcc/testsuite/ChangeLog:

* rust/compile/macros/builtin/recurse2.rs: Match "abheyho\0" as
well as "abheyho", to handle slight differences in assembly
output for null-terminated strings.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/testsuite/rust/compile/macros/builtin/recurse2.rs

index 73e6ab4aa6cd3d74eb6312385bd6b66ea18a6fa7..fbb4b10e65454d5fe5d132a283a1057a1810031b 100644 (file)
@@ -34,7 +34,7 @@ fn print_str(s: &str) {
     }
 }
 
-// { dg-final { scan-assembler {"abheyho"} } }
+// { dg-final { scan-assembler {"abheyho(\\0)?"} } }
 static S: &str = concat!("a", 'b', a!(), a!(b c d e f a!()), '\0');
 
 fn main() {