From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id 5EB8D38582B7 for ; Tue, 30 Jan 2024 12:10:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EB8D38582B7 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5EB8D38582B7 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::12c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616656; cv=none; b=KygXQEF3EJBKTK0/ySms6XSjF+deaODnMkVvv2uMVg/D6JOsTtpFcaKm1fgowYHvRiLJTlVR3OdKhFf4E1QfTWIziN1lDQARbEUxm9yiZyS7BQhH3LiDeFaZ/p4MaiOjExNeFGoT7tQoeoZ5isw6XmZCSDg1Ou43xn/3iuQUyyg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706616656; c=relaxed/simple; bh=Epbf87t6/3d/uCVS9Cf0cvGH7/5qXzBXkOY798BNHiM=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=X9YKygy+Eg1nqu9sRCm/6EYIuhncegRqHJU9SZ3fbCNBU4+BZe3TKVkbcu1Jh1xRJHMVOaEM3z717nsqzBw+k1oEEUcbtfsqwgHBOHNUblPs+CpMFIKeFkgw+9h3dkr2NqhdD7vjwhvDwv9BOwtixy9gpbWd8DC8mdQqXEFuasM= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-5111c9e48e8so606170e87.3 for ; Tue, 30 Jan 2024 04:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1706616651; x=1707221451; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Ap00SXxB/m3TXm5PBDbnlsXuLUv51Lc5YaBAFv8i8ew=; b=IfFX1wtpDq1chREF0lNUyWvi1SMTWBEjREfJeLNAV8L5GzZJAueI8ewk9FYwtpgN3n iCbNKsNxVe5Vbl1znx78Q2qVE6HPuvGaalL/2ut7quYHwdIRCexOvgesnSU0qeGIK4VU 3CcxJFhqgEsFlh8Tvme6ctXKnI8V0kVpUZZN2Q2wLr+06x+yembsJQsRklXxrFEgEtfe eUmqDDNvku6B/nWnD5BU6E8uGNVXNTjBEYfvTnZpTLXcnjEqTLziOq/6aGNsyVRDwTFv w53Es3jPCjnTuJyd53kq9TsWUfHjUHHoCGxZiA0u7i86lH0+F/V8RjBTuu/iCBwjZkQ3 dWfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706616651; x=1707221451; h=content-transfer-encoding:mime-version:reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ap00SXxB/m3TXm5PBDbnlsXuLUv51Lc5YaBAFv8i8ew=; b=vh5n5eS8wMcl5bNvZUEF16J7t8O1a2vFN1ior5xWpBEfw/2SeeFbisecCbQnWKhIdA EqY1+3Xg1EWSNOMchUX5cE9NdHO+gOF1UT5mIDwiCF0xjvFBlJcPcMcYvTPru7VY/ETP RL5rucc9ZBZSaocFsHdqvuxyaNTO4uWYsiA83Buz7rqOj/DYv19QAPlGITDc1tR+FAel jxp6H4iMWSO4Wop5tM5A4HIVkNTUWD//rIJLbk7lpK2y8JkT1w/hHwP/vbtVcf9N5XNX zyfTe8eJHcZOxykK8HWP9heP7ZCqJfbhEjkx+g1YfLc0Pu4nNe5E9gb4znC8Q6A3Lead AMgw== X-Gm-Message-State: AOJu0YwAsCaD+olKIjognnWMBLVslBqcW3SIfhSKNAq1Mm83xiTwWjkU MJQpjTp5peeGVRp/mZ8EIPJqrUlLeqVUdtXQwuPO2o0QbM3vG++sdGzYm9Sopw== X-Google-Smtp-Source: AGHT+IF1X47uAOBpzi6Hzct0rNpG1Dyx3Tvhg/V/OvL157ZnDHqAFUV4e5KXxEbeIM04AbBLpl5s/A== X-Received: by 2002:ac2:4db8:0:b0:511:976:b299 with SMTP id h24-20020ac24db8000000b005110976b299mr4887127lfe.52.1706616650717; Tue, 30 Jan 2024 04:10:50 -0800 (PST) Received: from platypus.localdomain ([62.23.166.218]) by smtp.gmail.com with ESMTPSA id f9-20020a056000036900b00339307d9d31sm10569894wrf.112.2024.01.30.04.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 04:10:50 -0800 (PST) From: arthur.cohen@embecosm.com To: gcc-patches@gcc.gnu.org Cc: gcc-rust@gcc.gnu.org, Pierre-Emmanuel Patry Subject: [COMMITTED 002/101] gccrs: Add a test to highlight public trait type parsing Date: Tue, 30 Jan 2024 13:06:18 +0100 Message-ID: <20240130121026.807464-5-arthur.cohen@embecosm.com> X-Mailer: git-send-email 2.42.1 In-Reply-To: <20240130121026.807464-2-arthur.cohen@embecosm.com> References: <20240130121026.807464-2-arthur.cohen@embecosm.com> Reply-To: arthur.cohen@embecosm.com MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: From: Pierre-Emmanuel Patry This new test highlight the parser's behavior around public trait types. gcc/testsuite/ChangeLog: * rust/compile/trait_pub_type.rs: New test. Signed-off-by: Pierre-Emmanuel Patry --- gcc/testsuite/rust/compile/trait_pub_type.rs | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/rust/compile/trait_pub_type.rs diff --git a/gcc/testsuite/rust/compile/trait_pub_type.rs b/gcc/testsuite/rust/compile/trait_pub_type.rs new file mode 100644 index 00000000000..85f6462e3b5 --- /dev/null +++ b/gcc/testsuite/rust/compile/trait_pub_type.rs @@ -0,0 +1,6 @@ +fn main() {} + +#[cfg(FALSE)] +trait T { + pub type X; +} -- 2.42.1