aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-10 10:37:18 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:12 +0100
commitb2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25 (patch)
tree0486f423219b8b5479fcc9f7dc5330ce533e804c /gcc
parent12650695701ff4bbcc64f2bf0e661480a20d5483 (diff)
downloadgcc-b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25.zip
gcc-b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25.tar.gz
gcc-b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25.tar.bz2
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.
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
+}