Commit 65937db8 by Iain Sandoe

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  <iain@sandoe.co.uk>

	* g++.dg/coroutines/torture/symmetric-transfer-00-basic.C:
	Add <cstdio>.
parent f9c38702
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> 2020-03-26 Marek Polacek <polacek@redhat.com>
DR 1710 DR 1710
......
...@@ -18,7 +18,8 @@ namespace coro = std::experimental; ...@@ -18,7 +18,8 @@ namespace coro = std::experimental;
#include <chrono> #include <chrono>
#include <thread> #include <thread>
#include <cstdio>
template <typename T> template <typename T>
struct Loopy { struct Loopy {
struct promise_type; struct promise_type;
...@@ -84,7 +85,7 @@ pingpong (const char *id) ...@@ -84,7 +85,7 @@ pingpong (const char *id)
v = co_await aw; 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); //fprintf (stderr, "%s = %d\n", id, v);
} }
int main () int main ()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment