blob: 73a0b1499d48ecd0fb5b0c0fdb2ab50c23eac021 [file] [log] [blame]
// { dg-additional-options "-fsyntax-only -w" }
#include "coro.h"
constexpr int bar () {
co_await coro::suspend_always{}; // { dg-error "cannot be used in a .constexpr. function" }
return 42; /* Suppress the "no return" error. */
}
int main () {
return bar ();
}