Debian Codegraph @

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

raw
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
9 bar () // { dg-error {no member named 'unhandled_exception' in} }
10 {
11 co_return;
12 }
13
14 int main (int ac, char *av[]) {
15 MissingUEH x = bar ();
16 return 0;
17 }