public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] testsuite: Add extern type item test
@ 2023-02-28 22:36 Thomas Schwinge
  0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2023-02-28 22:36 UTC (permalink / raw)
  To: gcc-cvs

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;
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-28 22:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-28 22:36 [gcc/devel/rust/master] testsuite: Add extern type item test Thomas Schwinge

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