]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add a regression test for global path parsing
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 10 Oct 2023 08:37:18 +0000 (10:37 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:12 +0000 (19:09 +0100)
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 [new file with mode: 0644]

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 (file)
index 0000000..eb083a8
--- /dev/null
@@ -0,0 +1,4 @@
+// { dg-additional-options "-frust-compile-until=ast" }
+pub fn foo<D: ::std::fmt::Debug>(_d: D) -> u32 {
+    0
+}