From b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 10 Oct 2023 10:37:18 +0200 Subject: [PATCH] gccrs: Add a regression test for global path parsing Add a new test to highlight fix for #2649. gcc/testsuite/ChangeLog: * rust/compile/parse_global_path_generic.rs: New test. --- gcc/testsuite/rust/compile/parse_global_path_generic.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/parse_global_path_generic.rs diff --git a/gcc/testsuite/rust/compile/parse_global_path_generic.rs b/gcc/testsuite/rust/compile/parse_global_path_generic.rs new file mode 100644 index 000000000000..eb083a8bed2f --- /dev/null +++ b/gcc/testsuite/rust/compile/parse_global_path_generic.rs @@ -0,0 +1,4 @@ +// { dg-additional-options "-frust-compile-until=ast" } +pub fn foo(_d: D) -> u32 { + 0 +} -- 2.47.2