Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/coro-missing-ueh-2.C

raw
1 // { dg-additional-options "-fsyntax-only -fno-exceptions " }
2
3 // The missing method is warned for when exceptions are off and pedantic
4 // is on (default in the testsuite).
5
6 #include "coro.h"
7 #include "coro-missing-ueh.h"
8
9 MissingUEH
10 bar () // { dg-warning {no member named 'unhandled_exception' in} }
11 {
12 co_return;
13 }
14
15 int main (int ac, char *av[]) {
16 MissingUEH x = bar ();
17 return 0;
18 }