1 // { dg-do compile { target c++14 } }
2 // { dg-skip-if "requires hosted libstdc++ for iostream" { ! hostedlib } }
9 return aha; // { dg-warning "dereferencing pointer '.*' to within stale stack frame" }
11 /* TODO: may be worth special-casing the reporting of dangling
12 references from lambdas, to highlight the declaration, and maybe fix
13 the wording (it's a reference, not a pointer, for one thing). */
19 std::cout << lambda() << std::endl;