From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1643) id 5FDE93858416; Tue, 28 Feb 2023 22:36:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5FDE93858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677623809; bh=bpZUfL08kySgvdwGKcFi4rHwwp6NJXh+0Tqw72XbyTQ=; h=From:To:Subject:Date:From; b=cIIScZaBxoo+nsBTU5wtrgAl/TeOe4hKnOxljaBKSOuSdLZNn+7qw/YhTJZaXwYDI I3H3fSFMpRb5wmKN7GaYyqpMQ4TKLRGtzvQBSdp05bqQdVX4KzDgdXOHq2YscE54vQ M6hbc45l2I65pYanDRAuM5PpB1+d4uD/jhFtQIMU= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Thomas Schwinge To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/rust/master] testsuite: Add extern type item test X-Act-Checkin: gcc X-Git-Author: Pierre-Emmanuel Patry X-Git-Refname: refs/heads/devel/rust/master X-Git-Oldrev: 689c421dd7a92bba7e31342a034fb25b85407b37 X-Git-Newrev: f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba Message-Id: <20230228223649.5FDE93858416@sourceware.org> Date: Tue, 28 Feb 2023 22:36:49 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba commit f2d18bdabc4efc0fc4d7ddf045fcebcf8407a3ba Author: Pierre-Emmanuel Patry 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 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; +}