public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/ARM/heads/morello)] testsuite: Move intptr-eval.c to c-c++-common
@ 2022-06-13 10:14 Alex Coplan
  0 siblings, 0 replies; only message in thread
From: Alex Coplan @ 2022-06-13 10:14 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:92446a01050f5c20f8f719966137a4976dbd6b75

commit 92446a01050f5c20f8f719966137a4976dbd6b75
Author: Alex Coplan <alex.coplan@arm.com>
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; }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-13 10:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 10:14 [gcc(refs/vendors/ARM/heads/morello)] testsuite: Move intptr-eval.c to c-c++-common Alex Coplan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).