From 10af70269c8858444b8c5f7c22a5b51be7af9ac2 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 10 Oct 2023 10:21:16 +0200 Subject: [PATCH] gccrs: Add a new regression test New regression test to highlight behavior of #2652. gcc/testsuite/ChangeLog: * rust/compile/parse_generic_path_expr.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/parse_generic_path_expr.rs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 gcc/testsuite/rust/compile/parse_generic_path_expr.rs diff --git a/gcc/testsuite/rust/compile/parse_generic_path_expr.rs b/gcc/testsuite/rust/compile/parse_generic_path_expr.rs new file mode 100644 index 000000000000..a340067e9ea5 --- /dev/null +++ b/gcc/testsuite/rust/compile/parse_generic_path_expr.rs @@ -0,0 +1,4 @@ +// { dg-additional-options "-frust-compile-until=ast" } +fn main() { + only_foo::<::Item>(); +} -- 2.47.2