public inbox for
 help / color / mirror / Atom feed
From: Arthur Cohen <>
Cc:, Philip Herron <>
Subject: [COMMITTED] gccrs: Add testcase to show forward declared items work
Date: Tue, 31 Jan 2023 14:27:32 +0100	[thread overview]
Message-ID: <> (raw)

From: Philip Herron <>

Fixes #1006


	* rust/compile/ New test.

Tested on x86_64-pc-linux-gnu, committed on master.

 gcc/testsuite/rust/compile/ | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 gcc/testsuite/rust/compile/

diff --git a/gcc/testsuite/rust/compile/ b/gcc/testsuite/rust/compile/
new file mode 100644
index 00000000000..7f565deaef3
--- /dev/null
+++ b/gcc/testsuite/rust/compile/
@@ -0,0 +1,10 @@
+// { dg-options "-w" }
+union B {
+    a: A,
+    b: f32,
+struct A {
+    data: i32,
+    len: usize,

                 reply	other threads:[~2023-01-31 13:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).