From: Pierre-Emmanuel Patry Date: Tue, 10 Oct 2023 08:37:18 +0000 (+0200) Subject: gccrs: Add a regression test for global path parsing X-Git-Tag: basepoints/gcc-15~2103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25;p=thirdparty%2Fgcc.git 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. --- 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 +}