[committed] coroutines, testsuite: Require C++17 for two tests.

Message ID B80B09C4-DDD9-4CB2-8AA4-581036B55099@sandoe.co.uk
State New
Headers show
Series
  • [committed] coroutines, testsuite: Require C++17 for two tests.
Related show

Commit Message

Iain Sandoe April 19, 2020, 12:21 p.m.
Hi,

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.

Tested on x86_64-darwin16,
applied to master,
thanks
Iain

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.

Patch

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 93a43fbd298..c5829c455a5 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 e600feae129..99910f33f53 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 <cassert>