Debian Codegraph @

gcc/testsuite/g++.dg/coroutines/torture/pr92933.C

raw
1 // { dg-do compile }
2
3 // Test that we compile the simple case described in PR 92933
4
5 #include "../coro.h"
6
7 #define RETURN_VOID
8 #include "../coro1-ret-int-yield-int.h"
9
10 struct some_error {};
11
12 coro1
13 foo() {
14 try {
15 co_return;
16 } catch (some_error) {
17 }
18 }