☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
coroutines
/
torture
/
pr92933.C
☽
☼
gcc/testsuite/g++.dg/coroutines/torture/pr92933.C
code
plain
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
}