From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx.kolabnow.com (mx.kolabnow.com [212.103.80.155]) by sourceware.org (Postfix) with ESMTPS id 65311385800C for ; Wed, 4 Oct 2023 12:41:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 65311385800C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=lambda.is Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=lambda.is Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id 944D120D6230; Wed, 4 Oct 2023 14:41:14 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (4096-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:date:subject:subject:from:from:received :received:received; s=dkim20160331; t=1696423273; x=1698237674; bh=QlIgHeUbflW5y7ZWWRd21VsA5t1+EtlhffIc9sHnBHo=; b=RJjj2kdIfjvs A4PhIHagCM9neTjNakuLOsQIx0kg2yNVHpkkdtwoaeE1ijP71dU4b+RX1pevfpUN YDhbEzJ0Alqwm4MWIrPpqmKezZuun5tRLjjLJDJ/ad8hDNgjoQTyRMoiXpwOOgBj Cy2fju8ZKvIn4ok1DrBynK9H392rJ+rv4O4TaKqa5It0u246CXLtHtDNBQn6y4yM Jyd88ORcbquc38TA4lUtqImn/ND1+C7G/KdMP5CDqgdRpAtcN5yWq1Q74OUUR/0R JLo3hdmyKaoMvgLvyR2x13Pd7q1zNuUqZ6JhjxR3Dd3yLTC/zccvRbXFZDfWzXKz GYjZj/2ek4dnGQPcqjhUp8Kj/VHVvFFM1fMwDRTAZQqtzn5u7FGqNbpAZSnO+tCY 8IT3qZT4JXDs58/sLKDe8OQ5fcUP7ZJJBPxevuSLbotbYeEBpI8xyx0HFR+oJml9 qyWa5LEApR+GEATnIU1zcyUpus4pKYo0nfcOr7U527GxxGs4GpSoYzrPmFi22eFv I4c1ii0I+cYX38re0f8JUwMCM9kLNk6UWEJG86eVk4G5znDcUktR9aDz6dTjEmWm C/0YHuWiG6kT15AIuHyuwTm7N3RwTVbrfUaqCj5hYfCslG5saFMjBulqORiTQFy+ ANIyPYb/9RKDV+sE4Ex/bFAJDgKFsTo= X-Virus-Scanned: amavis at mykolab.com X-Spam-Score: -1 X-Spam-Level: X-Spam-Status: No, score=-12.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,GIT_PATCH_0,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id BGu4VxssIAey; Wed, 4 Oct 2023 14:41:13 +0200 (CEST) Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id D6F4720B3670; Wed, 4 Oct 2023 14:41:13 +0200 (CEST) Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id C567F3081E50; Wed, 4 Oct 2023 14:41:13 +0200 (CEST) From: =?UTF-8?q?J=C3=B8rgen=20Kvalsvik?= To: gcc-patches@gcc.gnu.org Cc: mliska@suse.cz, jh@suse.cz, =?UTF-8?q?J=C3=B8rgen=20Kvalsvik?= Subject: [PATCH 22/22] Return value on separate line Date: Wed, 4 Oct 2023 21:39:22 +0900 Message-Id: <20231004123921.634024-23-j@lambda.is> In-Reply-To: <20231004123921.634024-1-j@lambda.is> References: <20231004123921.634024-1-j@lambda.is> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --- gcc/testsuite/g++.dg/gcov/gcov-18.C | 36 +++++++++++++++++++---------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/gcc/testsuite/g++.dg/gcov/gcov-18.C b/gcc/testsuite/g++.dg/gcov/gcov-18.C index 310ed5297c0..b58f8450e44 100644 --- a/gcc/testsuite/g++.dg/gcov/gcov-18.C +++ b/gcc/testsuite/g++.dg/gcov/gcov-18.C @@ -18,7 +18,8 @@ public: int identity (int x) { return x; } int throws (int) { throw std::runtime_error("exception"); } -int throw_if (int x) +int +throw_if (int x) { if (x) /* conditions(1/2) true(0) */ /* conditions(end) */ @@ -30,7 +31,8 @@ int throw_if (int x) int x = 0; /* conditionals work in the presence of non-trivial destructors */ -void mcdc001a (int a) +void +mcdc001a (int a) { nontrivial_destructor v (a); @@ -57,7 +59,8 @@ mcdc002a (int a, int b) } /* conditional in constructor */ -void mcdc003a (int a) +void +mcdc003a (int a) { class C { @@ -77,7 +80,8 @@ void mcdc003a (int a) } /* conditional in destructor */ -void mcdc004a (int a) +void +mcdc004a (int a) { class C { @@ -96,7 +100,8 @@ void mcdc004a (int a) } /* conditional in try */ -void mcdc005a (int a) +void +mcdc005a (int a) { try { @@ -113,7 +118,8 @@ void mcdc005a (int a) } /* conditional in catch */ -void mcdc006a (int a) { +void +mcdc006a (int a) { try { throws (a); @@ -128,7 +134,8 @@ void mcdc006a (int a) { } } -void mcdc006b (int a) +void +mcdc006b (int a) { if (a) /* conditions(1/2) true(0) */ /* conditions(end) */ @@ -137,7 +144,8 @@ void mcdc006b (int a) x = 1; } -void mcdc006c (int a) try +void +mcdc006c (int a) try { throws (a); } @@ -147,12 +155,14 @@ catch (...) { } /* temporary with destructor as term */ -void mcdc007a (int a, int b) +void +mcdc007a (int a, int b) { x = a && nontrivial_destructor (b); /* conditions(3/4) false(1) destructor() */ } -void mcdc007b (int a, int b) +void +mcdc007b (int a, int b) { if (a || throw_if (b)) /* conditions(3/4) true(1) destructor() */ x = -1; @@ -160,7 +170,8 @@ void mcdc007b (int a, int b) x = 1; } -void mcdc007c (int a, int b) +void +mcdc007c (int a, int b) { if (throw_if (a) || throw_if (b)) /* conditions(2/4) true(0 1) destructor() */ x = -1; @@ -169,7 +180,8 @@ void mcdc007c (int a, int b) } /* destructor with delete */ -void mcdc008a (int a) +void +mcdc008a (int a) { class C { -- 2.30.2