Skip to content

Commit

Permalink
Modify test cfg1.rs for name resolution 2.0
Browse files Browse the repository at this point in the history
gcc/testsuite/ChangeLog:

	* rust/compile/cfg1.rs: Run test with name resolution 2.0 only
	and adjust expected error message.
	* rust/compile/nr2/exclude: Remove cfg1.rs.

Signed-off-by: Owen Avery <[email protected]>
  • Loading branch information
powerboat9 committed Oct 17, 2024
1 parent 0b18bae commit 5e20b59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gcc/testsuite/rust/compile/cfg1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// { dg-additional-options "-w" }
// { dg-additional-options "-w -frust-name-resolution-2.0" }
extern "C" {
fn printf(s: *const i8, ...);
}
Expand Down Expand Up @@ -27,5 +27,5 @@ fn test() {

fn main() {
test();
// { dg-error "Cannot find path .test. in this scope" "" { target *-*-* } .-1 }
// { dg-error "could not resolve path expression: .test." "" { target *-*-* } .-1 }
}
1 change: 0 additions & 1 deletion gcc/testsuite/rust/compile/nr2/exclude
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ macros/builtin/recurse2.rs
macros/builtin/include3.rs
macros/builtin/include4.rs
canonical_paths1.rs
cfg1.rs
cfg3.rs
cfg4.rs
cfg5.rs
Expand Down

0 comments on commit 5e20b59

Please sign in to comment.