aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-02-27 14:07:00 +0100
committerCohenArthur <arthur.cohen@embecosm.com>2023-02-28 17:00:02 +0000
commitf2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba (patch)
tree4544b86b905da3eb7a6d626fee5b261f450d5f09
parent689c421dd7a92bba7e31342a034fb25b85407b37 (diff)
downloadgcc-f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba.zip
gcc-f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba.tar.gz
gcc-f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba.tar.bz2
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>
-rw-r--r--gcc/testsuite/rust/compile/extern_type_item.rs5
1 files changed, 5 insertions, 0 deletions
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 0000000..f60daad
--- /dev/null
+++ b/gcc/testsuite/rust/compile/extern_type_item.rs
@@ -0,0 +1,5 @@
+// { dg-additional-options "-fsyntax-only" }
+
+extern "C" {
+ type F;
+}