Debian Codegraph @

libstdc++-v3/testsuite/20_util/tuple/make_from_tuple/dangling_ref.cc

raw
1 // { dg-do compile { target c++17 } }
2 #include <tuple>
3 std::tuple<short> f();
4 auto t = std::make_from_tuple<const int&>(f()); // { dg-error "here" }
5 // { dg-error "static assertion failed" "" { target *-*-* } 0 }