diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-10 10:37:18 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:09:12 +0100 |
commit | b2ad5eae79ab836ccf4e85a67fdf84f1ce9dbb25 (patch) | |
tree | 0486f423219b8b5479fcc9f7dc5330ce533e804c /gcc | |
parent | 12650695701ff4bbcc64f2bf0e661480a20d5483 (diff) | |
download | gcc-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.rs | 4 |
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 +} |