public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/aoliva/heads/testme)] fix testsuite/g++.dg/init/new26.C for C++-14 and later
Date: Fri, 18 Dec 2020 14:47:03 +0000 (GMT)	[thread overview]
Message-ID: <20201218144703.96A27385702C@sourceware.org> (raw)

https://gcc.gnu.org/g:4f35eee151227c9a89ba452d65754cc2ca1e0df6

commit 4f35eee151227c9a89ba452d65754cc2ca1e0df6
Author: Jerome Lambourg <lambourg@adacore.com>
Date:   Fri Dec 18 11:39:41 2020 -0300

    fix testsuite/g++.dg/init/new26.C for C++-14 and later
    
    This test fails during the execution on VxWorks 7 when using
    C++-14 and C++-17.
    
    
    for  gcc/testsuite/ChangeLog
    
            * g++.dg/init/new26.C: Fix overriding of the delete operator
            for c++14 profile.

Diff:
---
 gcc/testsuite/g++.dg/init/new26.C | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/testsuite/g++.dg/init/new26.C b/gcc/testsuite/g++.dg/init/new26.C
index 541de3058e1..75bdcb15074 100644
--- a/gcc/testsuite/g++.dg/init/new26.C
+++ b/gcc/testsuite/g++.dg/init/new26.C
@@ -16,8 +16,12 @@ inline void *operator new(__SIZE_TYPE__)
   return p;
 }
 
+// C++11 and earlier
 inline void operator delete (void*) {}
 
+// C++14 profile
+inline void operator delete (void*, __SIZE_TYPE__) {}
+
 int * __attribute__((noinline)) doit(int n)
 {
   float *q;


             reply	other threads:[~2020-12-18 14:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-18 14:47 Alexandre Oliva [this message]
2020-12-25  1:46 Alexandre Oliva
2021-01-01  1:29 Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201218144703.96A27385702C@sourceware.org \
    --to=aoliva@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).