diff options
author | Jakub Jelinek <jakub@redhat.com> | 2025-03-27 21:21:48 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2025-03-27 21:21:48 +0100 |
commit | 50f8148a2754a1552704c6852c336ad008695388 (patch) | |
tree | 35964539cb12275e51ffd41fd741ed4da6f5cd0e | |
parent | f4649a8901b2ebd6bd87451c8b758022600bf281 (diff) | |
download | gcc-50f8148a2754a1552704c6852c336ad008695388.zip gcc-50f8148a2754a1552704c6852c336ad008695388.tar.gz gcc-50f8148a2754a1552704c6852c336ad008695388.tar.bz2 |
testsuite: Fix up strub-internal-pr112938.C test for C++2{0,3,6}
On Thu, Mar 27, 2025 at 12:05:21AM +0000, Sam James wrote:
> The test was being ignored because dg.exp looks for .C in g++.dg/.
>
> gcc/testsuite/ChangeLog:
> PR middle-end/112938
>
> * g++.dg/strub-internal-pr112938.cc: Move to...
> * g++.dg/strub-internal-pr112938.C: ...here.
This regressed the test for C++20 and higher:
FAIL: g++.dg/strub-internal-pr112938.C -std=gnu++20 (test for excess errors)
FAIL: g++.dg/strub-internal-pr112938.C -std=gnu++23 (test for excess errors)
FAIL: g++.dg/strub-internal-pr112938.C -std=gnu++26 (test for excess errors)
Here is a fix.
2025-03-27 Jakub Jelinek <jakub@redhat.com>
* g++.dg/strub-internal-pr112938.C: Add dg-warning for c++20.
-rw-r--r-- | gcc/testsuite/g++.dg/strub-internal-pr112938.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/strub-internal-pr112938.C b/gcc/testsuite/g++.dg/strub-internal-pr112938.C index 933a4fb..7d7023c 100644 --- a/gcc/testsuite/g++.dg/strub-internal-pr112938.C +++ b/gcc/testsuite/g++.dg/strub-internal-pr112938.C @@ -3,7 +3,7 @@ /* { dg-require-effective-target strub } */ bool __attribute__ ((__strub__ ("internal"))) -f(bool i, volatile bool j) +f(bool i, volatile bool j) /* { dg-warning "'volatile'-qualified parameter is deprecated" "" { target c++20 } } */ { return (i ^ j) == j; } |