From patchwork Fri Nov 1 09:29:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Martin X-Patchwork-Id: 100008 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A0A793858C31 for ; Fri, 1 Nov 2024 09:29:35 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from a7-10.smtp-out.eu-west-1.amazonses.com (a7-10.smtp-out.eu-west-1.amazonses.com [54.240.7.10]) by sourceware.org (Postfix) with ESMTPS id D39523858D33 for ; Fri, 1 Nov 2024 09:29:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D39523858D33 Authentication-Results: sourceware.org; dmarc=fail (p=quarantine dis=none) header.from=nasilyan.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=eu-west-1.amazonses.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D39523858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.240.7.10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730453346; cv=none; b=J9pQIUSbX2w+AAkAcOK8XD0Cf2QAfWjULLYNZcSUN5cQUGrcTcZ1z489cjpk19RAyn7HZNoG4iQHY+PYQb+hzl3BhHxi37k61ZaHtjve5uD6o4MJTEVvwGO1ZPcwvbkI747GvKzSV3RlplprTZaNS7U1PQPl+h6ADlEnT8hNN28= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730453346; c=relaxed/simple; bh=IqkKU2UhsFOM8hHRDtonL44x1kFJm0U7HxoCZJhkG8A=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=hkM4Pvom5BBPtu0FSB/FMlvvwXvvnNN5ZYOy00YmRJYzdRAOXkHjqv/ybLBTRRNEoMpr8YhWiO9m9y2UlORd0XurzN+SCJpDF1JTTM+HaDlCS4Hrescw5jAgISSRgSTucDU+GPd6DpJ6JXYs72pYm+PGWUWD+2/C0gn7HhTnYpI= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=tey23rxsjton5kop5bydp3vc5ylkyjkg; d=nasilyan.com; t=1730453343; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Transfer-Encoding; bh=IqkKU2UhsFOM8hHRDtonL44x1kFJm0U7HxoCZJhkG8A=; b=P9n/Po2oUKAEdC6HgYZbeg7waW5GR6xeNUyIGAlqpJP2Rh6xItoTUPm9DQX/tfst nf7vxjSeS2VY4vdAWP8BbTUUZBJVtquzdwdz9JgQGCVO5xs4yDZvryg3ixx6iad4HrN +c5JrnYTOevMBkgaW11yqHmuzpZL1YrFZcc2THFk= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1730453343; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Feedback-ID; bh=IqkKU2UhsFOM8hHRDtonL44x1kFJm0U7HxoCZJhkG8A=; b=Uxp9QY9T+MNmr/kgF9XzxY275Ct93cMNRYqcVcG1MgGFn+HOZni/hmtzODAZ/jNI KTQqHgn5Zwb0li5wwY7S3w1fvbN1WTZByJpZJYxcLZyk8GuYr0Qj3lHVsCnyxMT8bi/ 54qbp98bq/W3TSzw82jTg/La/SvQJhGbHuG8zUIU= From: Simon Martin To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com Subject: [PATCH] c++: Add testcase for now fixed issue [PR101887] Date: Fri, 1 Nov 2024 09:29:03 +0000 Message-ID: <01020192e70e8d1c-c8ace6b3-44d4-41b5-93a0-24250513a814-000000@eu-west-1.amazonses.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Feedback-ID: ::1.eu-west-1.sMDMtMBSIJpOhM8kCarpRYeKFuDfm/WoE5+9WtFxb8w=:AmazonSES X-SES-Outgoing: 2024.11.01-54.240.7.10 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, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~patchwork=sourceware.org@gcc.gnu.org The testcase in PR101887 has been working since the fix for PR104846, via r12-7599-gac8310dd122172. This patch simply adds the case to the testsuite. Successfully tested on x86_64-pc-linux-gnu. PR c++/101887 gcc/testsuite/ChangeLog: * g++.dg/init/delete5.C: Add testcase from PR c++/101887. --- gcc/testsuite/g++.dg/init/delete5.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/init/delete5.C b/gcc/testsuite/g++.dg/init/delete5.C index 3555f43bbb0..3fff93d846e 100644 --- a/gcc/testsuite/g++.dg/init/delete5.C +++ b/gcc/testsuite/g++.dg/init/delete5.C @@ -1,8 +1,9 @@ // PR c++/104846 +// PR c++/101887 // { dg-do compile { target c++14 } } struct S { auto operator delete (void *) {} // { dg-error ".operator delete. must return type .void'" } + auto operator delete (void*, __SIZE_TYPE__); // { dg-error ".operator delete. must return type .void'" } auto operator delete[] (void *) {} // { dg-error ".operator delete. must return type .void'" } }; -