Debian Codegraph @

libstdc++-v3/testsuite/24_iterators/range_generators/pr118022.cc

raw
1 // { dg-do compile { target c++23 } }
2 #include <generator>
3
4 struct O {
5 O() = default;
6 explicit O(const O&) = default;
7 };
8
9 std::generator<O&&> gen() {
10 const O o;
11 co_yield o;
12 }
13
14 int
15 main()
16 {}