aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-10-16 11:41:27 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:09:12 +0100
commit378c26f5a34272c7fbde0ff3c7392e6ab8240c05 (patch)
tree07641c63b001fc0f9911707264d294fa55e57819 /gcc
parentf209a01840a365365100c0ff4a31c0bab2ed2693 (diff)
downloadgcc-378c26f5a34272c7fbde0ff3c7392e6ab8240c05.zip
gcc-378c26f5a34272c7fbde0ff3c7392e6ab8240c05.tar.gz
gcc-378c26f5a34272c7fbde0ff3c7392e6ab8240c05.tar.bz2
gccrs: Add regression test
Add a new test to highlight fix for #2648. gcc/testsuite/ChangeLog: * rust/compile/parse_pub_unit_type.rs: New test. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/rust/compile/parse_pub_unit_type.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/rust/compile/parse_pub_unit_type.rs b/gcc/testsuite/rust/compile/parse_pub_unit_type.rs
new file mode 100644
index 0000000..c79f199
--- /dev/null
+++ b/gcc/testsuite/rust/compile/parse_pub_unit_type.rs
@@ -0,0 +1 @@
+pub struct Foo(pub ());