view gcc/testsuite/g++.dg/coroutines/pr94817.C @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source


void no_coroutine_traits() {
  co_await 4; // { dg-error {coroutines require a traits template\; cannot find 'std::coroutine_traits'} }
}

// check we have not messed up continuation of the compilation.
template <class... Args>
struct void_t_imp {
  using type = void;
};