From: Iain Sandoe Date: Sun, 19 Apr 2020 12:16:12 +0000 (+0100) Subject: coroutines, testsuite: Require C++17 for two tests. X-Git-Tag: basepoints/gcc-11~279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9382018b8b00f3482da0d1bff6012f583ff72f87;p=thirdparty%2Fgcc.git coroutines, testsuite: Require C++17 for two tests. While the coroutines implementation, and most of the coroutines tests, will operate with C++14 or newer, these tests require facilities introduced in C++17. Add the target requirement. gcc/testsuite/ 2020-04-19 Iain Sandoe * g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C: Require C++17. * g++.dg/coroutines/torture/co-ret-15-default-return_void.C: Likewise. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c3a7f2b8416..11143e7e70fc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2020-04-19 Iain Sandoe + + * g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C: Require + C++17. + * g++.dg/coroutines/torture/co-ret-15-default-return_void.C: Likewise. + 2020-04-19 Thomas Koenig PR fortran/94347 diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C b/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C index 93a43fbd2987..c5829c455a54 100644 --- a/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C +++ b/gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C @@ -1,4 +1,4 @@ -// { dg-do run } +// { dg-do run { target c++17 } } #include "../coro.h" diff --git a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C index e600feae1299..99910f33f53b 100644 --- a/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C +++ b/gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C @@ -1,4 +1,4 @@ -// { dg-do run } +// { dg-do run { target c++17 } } // // Check if default return_void is insert at correct position. #include