coroutines, testsuite: Require C++17 for two tests.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 19 Apr 2020 12:16:12 +0000 (13:16 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Sun, 19 Apr 2020 12:16:29 +0000 (13:16 +0100)
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  <iain@sandoe.co.uk>

* 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.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/torture/co-await-17-capture-comp-ref.C
gcc/testsuite/g++.dg/coroutines/torture/co-ret-15-default-return_void.C

index 6c3a7f2b8416094de6927637f4c246a382a37dcd..11143e7e70fcd9fcff20f995b393f6da06a9a84e 100644 (file)
@@ -1,3 +1,9 @@
+2020-04-19  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * 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  <tkoenig@gcc.gnu.org>
 
        PR fortran/94347
index 93a43fbd2987e1a798cbd3689c66bc7e665165a4..c5829c455a5462140124af6f40b4da2ca0902d80 100644 (file)
@@ -1,4 +1,4 @@
-//  { dg-do run }
+//  { dg-do run { target c++17 } }
 
 #include "../coro.h"
 
index e600feae1299a6066519f33fc9d4c2a0e51c0f99..99910f33f53bc1d90185a97f36ee59ac72a89805 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-do run }
+// { dg-do run { target c++17 } }
 //
 // Check if default return_void is insert at correct position.
 #include <cassert>