aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-10 10:37:18 +0200
committerCohenArthur <arthur.cohen@embecosm.com>2023-10-16 14:40:06 +0000
commit522528bce9925003009018954bdcaea45079dd79 (patch)
tree46bc92069322d453e6ddcd562ede77994598d12c /gcc
parenta87e147ed5dcfaecbdfd4edd23373d77a1397bc7 (diff)
downloadgcc-522528bce9925003009018954bdcaea45079dd79.zip
gcc-522528bce9925003009018954bdcaea45079dd79.tar.gz
gcc-522528bce9925003009018954bdcaea45079dd79.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/parse_global_path_generic.rs4
1 files changed, 4 insertions, 0 deletions
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 0000000..eb083a8
--- /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
+}