c++: Fix g++.dg/warn/Wmismatched-dealloc.C for C++11 [PR98566]
authorMarek Polacek <polacek@redhat.com>
Wed, 6 Jan 2021 17:15:36 +0000 (12:15 -0500)
committerMarek Polacek <polacek@redhat.com>
Wed, 6 Jan 2021 17:16:05 +0000 (12:16 -0500)
commite6a5daae7ec5318c3949432d92b7f674dab5241d
treea14fd058136e95dfd0425b4f88eeac98555ce9de
parent6d0b075d662e277a9847f7e8c17d34e7866f0cec
c++: Fix g++.dg/warn/Wmismatched-dealloc.C for C++11 [PR98566]

C++ sized deallocation only came in C++14, so this test wasn't
working properly in C++11, which isn't tested by default.  Fixed
thus by constraining the dg-errors to C++14 only.

gcc/testsuite/ChangeLog:

PR testsuite/98566
* g++.dg/warn/Wmismatched-dealloc.C: Use target c++14 in
dg-error.
gcc/testsuite/g++.dg/warn/Wmismatched-dealloc.C