From 0db8645d28889d1c2c9ce03256cbb12dae6a2e21 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Wed, 31 May 2017 21:34:43 +0000 Subject: [PATCH] Transform the libc++ coroutine shell tests into normal .pass.cpp tests. The shell test versions didn't get all of the flags normal tests do, specifically warning flags. This patch makes them .pass.cpp tests, and uses a lit.local.cfg to add -fcoroutines-ts and to make them UNSUPPORTED when that flag isn't available. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@304351 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../{operator_bool.sh.cpp => operator_bool.pass.cpp} | 4 ---- .../{equal_comp.sh.cpp => equal_comp.pass.cpp} | 4 ---- .../{less_comp.sh.cpp => less_comp.pass.cpp} | 4 ---- .../{done.sh.cpp => done.pass.cpp} | 4 ---- .../{assign.sh.cpp => assign.pass.cpp} | 4 ---- .../{construct.sh.cpp => construct.pass.cpp} | 4 ---- .../{address.sh.cpp => address.pass.cpp} | 4 ---- .../{from_address.sh.cpp => from_address.pass.cpp} | 4 ---- .../{hash.sh.cpp => hash.pass.cpp} | 4 ---- .../{promise.sh.cpp => promise.pass.cpp} | 4 ---- .../{destroy.sh.cpp => destroy.pass.cpp} | 4 ---- .../{resume.sh.cpp => resume.pass.cpp} | 4 ---- .../{void_handle.sh.cpp => void_handle.pass.cpp} | 4 ---- .../{promise_type.sh.cpp => promise_type.pass.cpp} | 4 ---- ...{suspend_always.sh.cpp => suspend_always.pass.cpp} | 8 ++++---- .../{suspend_never.sh.cpp => suspend_never.pass.cpp} | 8 ++++---- .../{await_result.sh.cpp => await_result.pass.cpp} | 5 +---- ...ait_suspend.sh.cpp => bool_await_suspend.pass.cpp} | 4 ---- .../end.to.end/{expected.sh.cpp => expected.pass.cpp} | 4 ---- .../{fullexpr-dtor.sh.cpp => fullexpr-dtor.pass.cpp} | 11 +++++------ .../{generator.sh.cpp => generator.pass.cpp} | 4 ---- .../end.to.end/{go.sh.cpp => go.pass.cpp} | 8 +------- ...{multishot_func.sh.cpp => multishot_func.pass.cpp} | 4 ---- .../{oneshot_func.sh.cpp => oneshot_func.pass.cpp} | 4 ---- .../{includes.sh.cpp => includes.pass.cpp} | 6 ------ 25 files changed, 15 insertions(+), 107 deletions(-) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/{operator_bool.sh.cpp => operator_bool.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/{equal_comp.sh.cpp => equal_comp.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/{less_comp.sh.cpp => less_comp.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/{done.sh.cpp => done.pass.cpp} (93%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/{assign.sh.cpp => assign.pass.cpp} (94%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/{construct.sh.cpp => construct.pass.cpp} (94%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/{address.sh.cpp => address.pass.cpp} (94%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/{from_address.sh.cpp => from_address.pass.cpp} (94%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/{hash.sh.cpp => hash.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/{promise.sh.cpp => promise.pass.cpp} (93%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/{destroy.sh.cpp => destroy.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/{resume.sh.cpp => resume.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/coroutine.handle/{void_handle.sh.cpp => void_handle.pass.cpp} (94%) rename test/std/experimental/language.support/support.coroutines/coroutine.traits/{promise_type.sh.cpp => promise_type.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/{suspend_always.sh.cpp => suspend_always.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/{suspend_never.sh.cpp => suspend_never.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{await_result.sh.cpp => await_result.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{bool_await_suspend.sh.cpp => bool_await_suspend.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{expected.sh.cpp => expected.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{fullexpr-dtor.sh.cpp => fullexpr-dtor.pass.cpp} (95%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{generator.sh.cpp => generator.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{go.sh.cpp => go.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{multishot_func.sh.cpp => multishot_func.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/end.to.end/{oneshot_func.sh.cpp => oneshot_func.pass.cpp} (96%) rename test/std/experimental/language.support/support.coroutines/{includes.sh.cpp => includes.pass.cpp} (90%) diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/operator_bool.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/operator_bool.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/operator_bool.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/operator_bool.pass.cpp index a744f56eb..30081fc3a 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/operator_bool.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.capacity/operator_bool.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/equal_comp.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/equal_comp.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/equal_comp.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/equal_comp.pass.cpp index 05c3f230e..278ea9d06 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/equal_comp.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/equal_comp.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/less_comp.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/less_comp.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/less_comp.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/less_comp.pass.cpp index 7b3bcc394..e92adf033 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/less_comp.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.compare/less_comp.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/done.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/done.pass.cpp similarity index 93% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/done.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/done.pass.cpp index 48c3ca50c..74a9e7bda 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/done.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.completion/done.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/assign.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/assign.pass.cpp similarity index 94% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/assign.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/assign.pass.cpp index 9e7fb5b2f..0cd3d05c2 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/assign.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/assign.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/construct.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/construct.pass.cpp similarity index 94% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/construct.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/construct.pass.cpp index 961253fb7..be5174dd3 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/construct.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.con/construct.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/address.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/address.pass.cpp similarity index 94% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/address.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/address.pass.cpp index 7258f9390..aba5eb663 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/address.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/address.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.pass.cpp similarity index 94% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.pass.cpp index 26a45b033..636d5da4e 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.export/from_address.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/hash.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/hash.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/hash.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/hash.pass.cpp index 5f66b3e11..342232962 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/hash.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.hash/hash.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.pass.cpp similarity index 93% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.pass.cpp index b38d7871b..4a61047a8 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.prom/promise.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/destroy.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/destroy.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/destroy.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/destroy.pass.cpp index 9cc0d1d72..df3337c4c 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/destroy.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/destroy.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/resume.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/resume.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/resume.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/resume.pass.cpp index b5ff187a4..21c05e2be 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/resume.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/coroutine.handle.resumption/resume.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.handle/void_handle.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.handle/void_handle.pass.cpp similarity index 94% rename from test/std/experimental/language.support/support.coroutines/coroutine.handle/void_handle.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.handle/void_handle.pass.cpp index 945304a46..844d34cc4 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.handle/void_handle.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.handle/void_handle.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.traits/promise_type.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.traits/promise_type.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/coroutine.traits/promise_type.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.traits/promise_type.pass.cpp index c1d3b818d..e26f333aa 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.traits/promise_type.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.traits/promise_type.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.pass.cpp index 1987f68e7..b10e72082 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_always.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include @@ -70,4 +66,8 @@ int main() static_assert(std::is_trivially_copyable::value, ""); static_assert(check_suspend_constexpr(), ""); } + { + // suppress unused warnings for the global constexpr test variable + ((void)constexpr_sa); + } } diff --git a/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.sh.cpp b/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.sh.cpp rename to test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.pass.cpp index 72e0ac024..9c2f39238 100644 --- a/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/coroutine.trivial.awaitables/suspend_never.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include @@ -72,4 +68,8 @@ int main() static_assert(std::is_trivially_copyable::value, ""); static_assert(check_suspend_constexpr(), ""); } + { + // suppress unused warnings for the global constexpr test variable + ((void)constexpr_sn); + } } diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/end.to.end/await_result.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp index cca875d1a..769a825df 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/await_result.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include @@ -58,6 +54,7 @@ coro_t f(int n) { co_return; } int val = co_await A{}; + ((void)val); set_value(42); } diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp index e51ac67f0..84a8613a1 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/bool_await_suspend.pass.cpp @@ -9,14 +9,10 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts // FIXME: When run under UBSAN this test hits an assertion inside Clang // XFAIL: ubsan -// RUN: %build -fcoroutines-ts -// RUN: %run - #include #include diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/expected.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/expected.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/end.to.end/expected.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/expected.pass.cpp index b6832b0c1..77070cc5a 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/expected.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/expected.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp similarity index 95% rename from test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp index c7e34fe91..425a45657 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/fullexpr-dtor.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include @@ -67,6 +63,7 @@ coro2 a() { assert(alive == 1); assert(ctor_called == 1); assert(dtor_called == 0); + ((void)x); } assert(alive == 0); assert(dtor_called == 1); @@ -75,7 +72,8 @@ coro2 a() { coro2 b() { reset(); { - co_await Bug{}; + auto x = co_await Bug{}; + ((void)x); assert(ctor_called == 1); assert(dtor_called == 1); assert(alive == 0); @@ -102,7 +100,8 @@ coro2 c() { coro2 d() { reset(); { - co_yield 42; + auto x = co_yield 42; + ((void)x); assert(ctor_called == 1); assert(dtor_called == 1); assert(alive == 0); diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/generator.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/end.to.end/generator.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp index 4681793ed..021a96045 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/generator.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/generator.pass.cpp @@ -9,14 +9,10 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts // FIXME: When run under UBSAN this test hits an assertion inside Clang // XFAIL: ubsan -// RUN: %build -fcoroutines-ts -// RUN: %run - #include #include #include diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/go.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/go.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/end.to.end/go.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/go.pass.cpp index e0d69104f..1fdf2c855 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/go.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/go.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include @@ -166,9 +162,7 @@ goroutine pusher(channel& left, channel& right) } } -const int N = 100; //100'000'000; -const int repeat = 1; - +const int N = 100; channel* c = new channel[N + 1]; int main() { diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.pass.cpp index e13196c25..e3c965303 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/multishot_func.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include diff --git a/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.sh.cpp b/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp similarity index 96% rename from test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.sh.cpp rename to test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp index 9c94f73b2..d5f2c40e2 100644 --- a/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/end.to.end/oneshot_func.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run #include #include diff --git a/test/std/experimental/language.support/support.coroutines/includes.sh.cpp b/test/std/experimental/language.support/support.coroutines/includes.pass.cpp similarity index 90% rename from test/std/experimental/language.support/support.coroutines/includes.sh.cpp rename to test/std/experimental/language.support/support.coroutines/includes.pass.cpp index f9d8a5722..b30d8c7ed 100644 --- a/test/std/experimental/language.support/support.coroutines/includes.sh.cpp +++ b/test/std/experimental/language.support/support.coroutines/includes.pass.cpp @@ -9,10 +9,6 @@ //===----------------------------------------------------------------------===// // UNSUPPORTED: c++98, c++03, c++11 -// REQUIRES: fcoroutines-ts - -// RUN: %build -fcoroutines-ts -// RUN: %run // @@ -20,8 +16,6 @@ #include - - int main(){ // std::nothrow is not implicitly defined by the compiler when the include is // missing, unlike other parts of . Therefore we use std::nothrow to