gcc/testsuite/g++.dg/coroutines/coro-builtins.C
raw| 1 | // { dg-additional-options "-fsyntax-only " } |
| 2 | |
| 3 | typedef __SIZE_TYPE__ size_t; |
| 4 | |
| 5 | int main () |
| 6 | { |
| 7 | void *co_h; |
| 8 | void *promise; |
| 9 | const size_t co_align = 16; |
| 10 | |
| 11 | bool d = __builtin_coro_done (co_h); |
| 12 | __builtin_coro_resume (co_h); |
| 13 | __builtin_coro_destroy (co_h); |
| 14 | promise = __builtin_coro_promise (co_h, co_align, true); |
| 15 | |
| 16 | return 0; |
| 17 | } |