coroutines, testsuite: Fix symmetric-transfer-00-basic.C on Linux.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 27 Mar 2020 00:12:01 +0000 (00:12 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 27 Mar 2020 00:25:14 +0000 (00:25 +0000)
In order for the test output to work we need to include
cstdio.

2020-03-27  Iain Sandoe  <iain@sandoe.co.uk>

* g++.dg/coroutines/torture/symmetric-transfer-00-basic.C:
Add <cstdio>.

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/coroutines/torture/symmetric-transfer-00-basic.C

index 45b19d5061e043d0d049be750ccbdc16480deca0..4cbfdcafa990518961f2e9ccc8b02da9e54448d5 100644 (file)
@@ -1,3 +1,8 @@
+2020-03-27 Iain Sandoe <iain@sandoe.co.uk>
+
+       * g++.dg/coroutines/torture/symmetric-transfer-00-basic.C:
+       Add <cstdio>.
+
 2020-03-26  Marek Polacek  <polacek@redhat.com>
 
        DR 1710
index c445fc55a2c3fc3c3bc70358c74b342bb25366ee..864846e365cf6ad5d6c4c7ae5c29534c711d2299 100644 (file)
@@ -18,7 +18,8 @@ namespace coro = std::experimental;
 
 #include <chrono>
 #include <thread>
+#include <cstdio>
+
 template <typename T> 
 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 ()