public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Thomas Schwinge <tschwinge@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc/devel/rust/master] testsuite: Add extern type item test
Date: Tue, 28 Feb 2023 22:36:49 +0000 (GMT)	[thread overview]
Message-ID: <20230228223649.5FDE93858416@sourceware.org> (raw)

https://gcc.gnu.org/g:f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba

commit f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba
Author: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Date:   Mon Feb 27 14:07:00 2023 +0100

    testsuite: Add extern type item test
    
    Add a test for extern type item declaration.
    
    gcc/testsuite/ChangeLog:
    
            * rust/compile/extern_type_item.rs: New test.
    
    Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>

Diff:
---
 gcc/testsuite/rust/compile/extern_type_item.rs | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gcc/testsuite/rust/compile/extern_type_item.rs b/gcc/testsuite/rust/compile/extern_type_item.rs
new file mode 100644
index 00000000000..f60daad52b8
--- /dev/null
+++ b/gcc/testsuite/rust/compile/extern_type_item.rs
@@ -0,0 +1,5 @@
+// { dg-additional-options "-fsyntax-only" }
+
+extern "C" {
+    type F;
+}

                 reply	other threads:[~2023-02-28 22:36 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20230228223649.5FDE93858416@sourceware.org \
    --to=tschwinge@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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).