Skip to content

Commit ff18245

Browse files
powerboat9P-E-P
authored andcommitted
Fix scan-assembler regexp in recurse2.rs
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>
1 parent 6aa0b64 commit ff18245

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gcc/testsuite/rust/compile/macros/builtin/recurse2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fn print_str(s: &str) {
3434
}
3535
}
3636

37-
// { dg-final { scan-assembler {"abheyho"} } }
37+
// { dg-final { scan-assembler {"abheyho(\\0)?"} } }
3838
static S: &str = concat!("a", 'b', a!(), a!(b c d e f a!()), '\0');
3939

4040
fn main() {

0 commit comments

Comments
 (0)