]>
git.ipfire.org Git - thirdparty/gcc.git/blob - libstdc++-v3/testsuite/20_util/function/cons/70692.cc
1 // { dg-do compile { target c++11 } }
2 // { dg-require-effective-target hosted }
4 // No warning when function<const int&(...)> binds a reference to a temporary
11 std::function
<const int&()> ff(f
); // { dg-error "no matching function" }
12 std::function
<long&&()> f2(f
); // { dg-error "no matching function" }
14 // { dg-error "std::enable_if" "" { target *-*-* } 0 }