From: Jakub Jelinek Date: Wed, 15 Dec 2021 10:18:14 +0000 (+0100) Subject: testsuite: Fix up cpp23/auto-fncast11.C testcase [PR103408] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6bf5d9108ae2dcb6cb883442d7bd299fd8fc15e9;p=test_jj.git testsuite: Fix up cpp23/auto-fncast11.C testcase [PR103408] This test fails: +FAIL: g++.dg/cpp23/auto-fncast11.C -std=c++2b (test for errors, line 19) +FAIL: g++.dg/cpp23/auto-fncast11.C -std=c++2b (test for excess errors) because the regex in dg-error was missing an indefinite article. 2021-12-15 Jakub Jelinek PR c++/103408 * g++.dg/cpp23/auto-fncast11.C: Fix expected diagnostic wording. --- diff --git a/gcc/testsuite/g++.dg/cpp23/auto-fncast11.C b/gcc/testsuite/g++.dg/cpp23/auto-fncast11.C index 669dda1..1ae0426 100644 --- a/gcc/testsuite/g++.dg/cpp23/auto-fncast11.C +++ b/gcc/testsuite/g++.dg/cpp23/auto-fncast11.C @@ -16,4 +16,4 @@ static_assert(requires { requires auto(auto(true)); }); static_assert(!requires { requires auto(false); }); static_assert(!requires { requires auto(auto(false)); }); -auto f() requires (auto(false)); // { dg-error "constraints on non-templated" } +auto f() requires (auto(false)); // { dg-error "constraints on a non-templated" }