From 9382018b8b00f3482da0d1bff6012f583ff72f87 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Sun, 19 Apr 2020 13:16:12 +0100 Subject: [PATCH] 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. --- gcc/testsuite/ChangeLog | 6 ++++++ .../coroutines/torture/co-await-17-capture-comp-ref.C | 2 +- .../coroutines/torture/co-ret-15-default-return_void.C | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6c3a7f2b841..11143e7e70f 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 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 -- 2.30.2