From f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Mon, 27 Feb 2023 14:07:00 +0100 Subject: 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 --- gcc/testsuite/rust/compile/extern_type_item.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/rust/compile/extern_type_item.rs (limited to 'gcc') 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; +} -- cgit v1.1