From 65937db83cd62daef230ece2d92f23f01fb90927 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Fri, 27 Mar 2020 00:12:01 +0000 Subject: [PATCH] coroutines, testsuite: Fix symmetric-transfer-00-basic.C on Linux. In order for the test output to work we need to include cstdio. 2020-03-27 Iain Sandoe * g++.dg/coroutines/torture/symmetric-transfer-00-basic.C: Add . --- gcc/testsuite/ChangeLog | 5 +++++ .../g++.dg/coroutines/torture/symmetric-transfer-00-basic.C | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 45b19d5061e..4cbfdcafa99 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-03-27 Iain Sandoe + + * g++.dg/coroutines/torture/symmetric-transfer-00-basic.C: + Add . + 2020-03-26 Marek Polacek DR 1710 diff --git a/gcc/testsuite/g++.dg/coroutines/torture/symmetric-transfer-00-basic.C b/gcc/testsuite/g++.dg/coroutines/torture/symmetric-transfer-00-basic.C index c445fc55a2c..864846e365c 100644 --- a/gcc/testsuite/g++.dg/coroutines/torture/symmetric-transfer-00-basic.C +++ b/gcc/testsuite/g++.dg/coroutines/torture/symmetric-transfer-00-basic.C @@ -18,7 +18,8 @@ namespace coro = std::experimental; #include #include - +#include + template struct Loopy { struct promise_type; @@ -84,7 +85,7 @@ pingpong (const char *id) v = co_await aw; //fprintf (stderr, "%s = %d\n", id, v); } - fprintf (stderr, "%s = %d\n", id, v); + //fprintf (stderr, "%s = %d\n", id, v); } int main () -- 2.30.2