]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
testsuite: Add extern type item test
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Mon, 27 Feb 2023 13:07:00 +0000 (14:07 +0100)
committerCohenArthur <arthur.cohen@embecosm.com>
Tue, 28 Feb 2023 17:00:02 +0000 (17:00 +0000)
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>
gcc/testsuite/rust/compile/extern_type_item.rs [new file with mode: 0644]

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