Checks
Context | Check | Description |
---|---|---|
linaro-tcwg-bot/tcwg_gcc_build--master-arm | fail | Patch failed to apply |
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 | fail | Patch failed to apply |
Commit Message
Arthur Cohen
Aug. 1, 2024, 2:58 p.m. UTC
From: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> A previous bug with name resolution 2.0 was caused by an incorrectly resolved inherent impl name. This test shall highlight the behavior and prevent regression. gcc/testsuite/ChangeLog: * rust/compile/name_resolution25.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> --- gcc/testsuite/rust/compile/name_resolution25.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/rust/compile/name_resolution25.rs
diff --git a/gcc/testsuite/rust/compile/name_resolution25.rs b/gcc/testsuite/rust/compile/name_resolution25.rs new file mode 100644 index 00000000000..3cacac7f64b --- /dev/null +++ b/gcc/testsuite/rust/compile/name_resolution25.rs @@ -0,0 +1,5 @@ +// { dg-options "-frust-name-resolution-2.0" } + +struct Test; // { dg-warning "struct is never constructed: .Test." } + +impl Test {}