3 // template parm in a class
7 // boiler-plate for tests of codegen
8 #define USE_AWAIT_TRANSFORM
9 #include "../coro1-ret-int-yield-int.h"
17 PRINT ("coro1: about to return");
19 co_return co_await x + 3;
26 PRINT ("main: create coro1");
27 coro1 x = inst.operator()(17);
32 PRINT ("main: after resume (initial suspend)");
35 PRINT ("main: after resume (co_await)");
37 /* Now we should have the co_returned value. */
38 int y = x.handle.promise().get_value();
41 PRINTF ("main: wrong result (%d).", y);
47 PRINT ("main: apparently not done...");
50 PRINT ("main: returning");