2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wdangling-reference" }
10 std::reference_wrapper<const X> wrapit() const { return x; }
17 const auto& a1 = s.wrapit().get();
19 const auto& a2 = S().wrapit().get(); // { dg-warning "dangling reference" }