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

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

Completed in 142 milliseconds