[gcc r14-8036] gccrs: Add a regression test for global path parsing

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:13:04 GMT 2024


https://gcc.gnu.org/g:b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25

commit r14-8036-gb2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Tue Oct 10 10:37:18 2023 +0200

    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:
---
 gcc/testsuite/rust/compile/parse_global_path_generic.rs | 4 ++++
 1 file changed, 4 insertions(+)

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 00000000000..eb083a8bed2
--- /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: ::std::fmt::Debug>(_d: D) -> u32 {
+    0
+}


More information about the Gcc-cvs mailing list