1 // { dg-additional-options "-fsyntax-only -fexceptions -w" } 2 3 // Diagose missing unhandled_exception() in the promise type. 4 5 #include "coro.h" 6 #include "coro-missing-ueh.h" 7 8 MissingUEH bar()9bar () // { dg-error {no member named 'unhandled_exception' in} } 10 { 11 co_return; 12 } 13 main(int ac,char * av[])14int main (int ac, char *av[]) { 15 MissingUEH x = bar (); 16 return 0; 17 } 18