]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add regression test
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 16 Oct 2023 09:41:27 +0000 (11:41 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:09:12 +0000 (19:09 +0100)
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>
gcc/testsuite/rust/compile/parse_pub_unit_type.rs [new file with mode: 0644]

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 (file)
index 0000000..c79f199
--- /dev/null
@@ -0,0 +1 @@
+pub struct Foo(pub ());