Searched refs:MaybeReturnJunk (Results 1 - 1 of 1) sorted by relevance

/external/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp194 constexpr const int &MaybeReturnJunk(bool b, const int a) { // expected-note 2{{declared here}} function in namespace:ParameterScopes
197 static_assert(MaybeReturnJunk(false, 0) == 42, ""); // ok
198 constexpr int a = MaybeReturnJunk(true, 0); // expected-error {{constant expression}} expected-note {{read of variable whose lifetime has ended}}
207 return MaybeReturnJunk(true, n); // expected-note {{read of variable whose lifetime has ended}}

Completed in 37 milliseconds