From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7810) id 6E9CA38515D9; Mon, 13 Jun 2022 10:14:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6E9CA38515D9 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alex Coplan To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/morello)] testsuite: Move intptr-eval.c to c-c++-common X-Act-Checkin: gcc X-Git-Author: Alex Coplan X-Git-Refname: refs/vendors/ARM/heads/morello X-Git-Oldrev: 63b4bc6634e17fcc73742635887cb7155cd4a213 X-Git-Newrev: 92446a01050f5c20f8f719966137a4976dbd6b75 Message-Id: <20220613101421.6E9CA38515D9@sourceware.org> Date: Mon, 13 Jun 2022 10:14:21 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jun 2022 10:14:21 -0000 https://gcc.gnu.org/g:92446a01050f5c20f8f719966137a4976dbd6b75 commit 92446a01050f5c20f8f719966137a4976dbd6b75 Author: Alex Coplan Date: Wed Jun 8 15:57:52 2022 +0100 testsuite: Move intptr-eval.c to c-c++-common This ensures the test is run for both C and C++. Diff: --- .../{gcc.c-torture/execute => c-c++-common/torture}/intptr-eval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/testsuite/gcc.c-torture/execute/intptr-eval.c b/gcc/testsuite/c-c++-common/torture/intptr-eval.c similarity index 97% rename from gcc/testsuite/gcc.c-torture/execute/intptr-eval.c rename to gcc/testsuite/c-c++-common/torture/intptr-eval.c index dd7a13ced83..681daaa86f7 100644 --- a/gcc/testsuite/gcc.c-torture/execute/intptr-eval.c +++ b/gcc/testsuite/c-c++-common/torture/intptr-eval.c @@ -1,6 +1,7 @@ /* This was being miscompiled on capability targets since we were incorrectly evaluating intcap operands twice: once to get the capability, and again to get the capability value. */ +/* { dg-do run } */ int i; __INTPTR_TYPE__ f() { i++; return 1; }