diff options
author | Marek Polacek <polacek@redhat.com> | 2023-12-14 12:29:23 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2023-12-14 12:29:42 -0500 |
commit | 767e2674875139ac8f354ceee655c1a9561b9779 (patch) | |
tree | b8ee2f426e4a89347d6a4113e1585a71a4b7640c /gcc | |
parent | e5e1999aa664333f766f3e6cc6996f769d50ae7a (diff) | |
download | gcc-767e2674875139ac8f354ceee655c1a9561b9779.zip gcc-767e2674875139ac8f354ceee655c1a9561b9779.tar.gz gcc-767e2674875139ac8f354ceee655c1a9561b9779.tar.bz2 |
c++: adjust class-deduction67.C for C++23
The test says that CTAD from inherited constructors doesn't work
before C++23 so we should use c++20_down for the error.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1z/class-deduction67.C: Correct dg-error target.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/cpp1z/class-deduction67.C | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C b/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C index 74f9232..fa1523d 100644 --- a/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C +++ b/gcc/testsuite/g++.dg/cpp1z/class-deduction67.C @@ -16,5 +16,5 @@ int main() { B b = 42; // { dg-line init } // { dg-prune-output "no matching function" } - // { dg-error "class template argument deduction" "" { target c++23_down } init } + // { dg-error "class template argument deduction" "" { target c++20_down } init } } |