Skip to content

Commit

Permalink
gccrs: Fix scan-gimple testcases on LE platforms.
Browse files Browse the repository at this point in the history
gcc/testsuite/ChangeLog:

	* rust/compile/builtin_macro_eager1.rs: Switch to scan-assembler
	directive as the GIMPLE dump does not contain strings on LE.
	* rust/compile/builtin_macro_recurse2.rs: Likewise.
  • Loading branch information
CohenArthur committed Jan 23, 2024
1 parent fb8bb17 commit b2be198
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcc/testsuite/rust/compile/builtin_macro_eager1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ macro_rules! b {
}

fn main() {
// { dg-final { scan-tree-dump-times {"test1canary"} 1 gimple } }
// { dg-final { scan-assembler {"test1canary"} } }
let _ = concat!(a!(), 1, b!());
// should not error
concat!(a!(), true, b!(),);
Expand Down
2 changes: 1 addition & 1 deletion gcc/testsuite/rust/compile/builtin_macro_recurse2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ macro_rules! a {
}

fn main() {
// { dg-final { scan-tree-dump-times {"abheyho"} 1 gimple } }
// { dg-final { scan-assembler {"abheyho"} } }
let _ = concat!("a", 'b', a!(), a!(b c d e f a!()), '\0');
}

0 comments on commit b2be198

Please sign in to comment.