1 //  { dg-additional-options "-fsyntax-only -fno-exceptions -Wno-pedantic" }
2 
3 /* We don't warn about the missing method, unless in pedantic mode, so
4    this compile should be clean.  */
5 
6 #include "coro.h"
7 #include "coro-missing-ueh.h"
8 
9 MissingUEH
bar()10 bar ()
11 {
12   co_return;
13 }
14 
15 // check we have not messed up continuation of the compilation.
16 template <class... Args>
17 struct void_t_imp {
18   using type = void;
19 };
20 
main(int ac,char * av[])21 int main (int ac, char *av[]) {
22   MissingUEH x = bar ();
23   return 0;
24 }
25