diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-10-10 10:37:18 +0200 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2023-10-16 14:40:06 +0000 |
commit | 522528bce9925003009018954bdcaea45079dd79 (patch) | |
tree | 46bc92069322d453e6ddcd562ede77994598d12c /gcc | |
parent | a87e147ed5dcfaecbdfd4edd23373d77a1397bc7 (diff) | |
download | gcc-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.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 +} |