| 1 |
#include <coroutine> |
| 2 |
|
| 3 |
struct task |
| 4 |
{ |
| 5 |
struct promise_type |
| 6 |
{ |
| 7 |
void return_void () {} |
| 8 |
task get_return_object () { return {}; } |
| 9 |
void unhandled_exception () {} |
| 10 |
std::suspend_never initial_suspend () { return {}; } |
| 11 |
std::suspend_never final_suspend () noexcept { return {}; } |
| 12 |
}; |
| 13 |
}; |
| 14 |
|
| 15 |
task |
| 16 |
f () |
| 17 |
{ |
| 18 |
void* a = __builtin_alloca (10); |
| 19 |
// { dg-message "sorry, unimplemented: 'alloca' is not yet supported in coroutines" "" { target *-*-* } {.-1} } |
| 20 |
void* b = __builtin_alloca_with_align (10, 16); |
| 21 |
// { dg-message "sorry, unimplemented: 'alloca' is not yet supported in coroutines" "" { target *-*-* } {.-1} } |
| 22 |
co_return; |
| 23 |
} |