3 // Simplest local decl.
7 // boiler-plate for tests of codegen
8 #include "../coro1-ret-int-yield-int.h"
13 const int answer = 42;
14 PRINTF ("coro1: about to return %d\n", answer);
20 PRINT ("main: create coro1");
21 struct coro1 x = f ();
22 PRINT ("main: got coro1 - resuming");
26 PRINT ("main: after resume");
27 int y = x.handle.promise().get_value();
32 PRINT ("main: apparently not done...");
35 PRINT ("main: returning");