From patchwork Fri Mar 3 00:13:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Buclaw X-Patchwork-Id: 63683 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp140140wrd; Thu, 2 Mar 2023 16:14:46 -0800 (PST) X-Google-Smtp-Source: AK7set9MVCUtpgTf3rYOmma12/NOCsRoKsbVR+VWAdlxQ+l5oat6SG34dCJg67b5BKmneAOiDd/l X-Received: by 2002:a17:906:1795:b0:8b1:20f4:44a3 with SMTP id t21-20020a170906179500b008b120f444a3mr10433637eje.7.1677802486318; Thu, 02 Mar 2023 16:14:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677802486; cv=none; d=google.com; s=arc-20160816; b=iIMm2CdGe7Gk8RBEE0cwAIj9NW9zbXvLuJbw1HWPa8S3j7QD4CLaF7PwopPHUpQ266 rO5W9oUdseQ1iehgJfEzSNdu/2B09SXDZFKziC5Mo51ggmxLtKpWeq8xuuVW6eqpYTsi UhRdECGpACLsKMae69ZRrLJIO7THiza6T2VFVT/63UhHKBQ577a1MRl67au7L2QPrly9 aWvJ/p3z5sPSxcvZSTFFuplSMkhDLVOdVqtD+G0EgpVeIdy0wHbklMHLMDh722DCWGSE K4Jbfjhdj7Ayw968UczWxDaOAuZQH8uBPAUA47yMRbiH6wCOXYmAQMSrOnRpKOVfghuR ttdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Ukk7fg7uYxDE9y0X6bATpnNQzCZkW6D+4GiP0syZ+g4=; b=G/WEuPkabop6oUZhjEvRIul4lSJmynqVnTZ/+j2Fvs0uRe0a8QUF1teq/8ZZ+HaImd Nuhu/ZgMc9ZIuKu5u25upt3nio7TWeE7inXThcqyYgmvCNViWLehlMInVfBTToJ7B/r2 ORJ6IDYv72JNnG8i/x9G8OQNOaW6dnwj5c3Bp0I2RpioQmO9qU4RDPv1OeF0j44E7zMD 7D316ibYYqKU1DwF0HDdQ8HE0KhWZ3U3daKC4SkJkiWpwnB+3e2A6r4+5+/mS4XdHKA2 dkcj6GqKdPa9OROfpzINCO/fYRknMv0CVbbsosw6Z4zEVp5C8ML0aoSPm9NoJWLyGupH PHiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="gsssbS/5"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org ([2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x24-20020a170906711800b008c9c39f9d3fsi576411ejj.908.2023.03.02.16.14.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Mar 2023 16:14:46 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b="gsssbS/5"; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A81C73858C83 for ; Fri, 3 Mar 2023 00:14:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A81C73858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677802483; bh=Ukk7fg7uYxDE9y0X6bATpnNQzCZkW6D+4GiP0syZ+g4=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=gsssbS/5qo13aRXwupyziXkn4t/vsTAOJyY2tCymB6XSN+9/wSBcXskbOtj6McIqI hK8h0c45jCzdv7ZblrcMWGnMHVCjyaL9HWIuahLEHvyXc7Gvbls21fFANoC8JVS4Vo j3oq4zYpPNyKu2EmEJDGUl9fCd2KTvxy96Zdh+9w= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [80.241.56.172]) by sourceware.org (Postfix) with ESMTPS id DDA5F3858CDB for ; Fri, 3 Mar 2023 00:13:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DDA5F3858CDB Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4PST3R3Q5fz9sdB; Fri, 3 Mar 2023 01:13:55 +0100 (CET) To: gcc-patches@gcc.gnu.org Cc: Iain Buclaw Subject: [committed] d: Add test for PR d/108167 to the testsuite [PR108167] Date: Fri, 3 Mar 2023 01:13:51 +0100 Message-Id: <20230303001351.4145614-1-ibuclaw@gdcproject.org> MIME-Version: 1.0 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Iain Buclaw via Gcc-patches From: Iain Buclaw Reply-To: Iain Buclaw Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759303419961811440?= X-GMAIL-MSGID: =?utf-8?q?1759303419961811440?= Hi, This patch adds the test for checking PR108167. The D front-end implementation got fixed in upstream, add test to the gdc testsuite to check we don't regress on it. Regression tested on x86_64-linux-gnu/-m32, and committed to mainline. Regards, Iain. --- PR d/108167 gcc/testsuite/ChangeLog: * gdc.dg/pr108167.d: New test. --- gcc/testsuite/gdc.dg/pr108167.d | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gcc/testsuite/gdc.dg/pr108167.d diff --git a/gcc/testsuite/gdc.dg/pr108167.d b/gcc/testsuite/gdc.dg/pr108167.d new file mode 100644 index 00000000000..1337a494171 --- /dev/null +++ b/gcc/testsuite/gdc.dg/pr108167.d @@ -0,0 +1,5 @@ +// { dg-do compile } +auto pr108167(const(ubyte[32])[] a) +{ + return cast(const(ubyte)*)&a[1][0]; +}