Home
last modified time | relevance | path

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

/external/clang/test/SemaCXX/
Dconstant-expression-cxx11.cpp201 constexpr const int &MaybeReturnJunk(bool b, const int a) { // expected-note 2{{declared here}} in MaybeReturnJunk() function
204 static_assert(MaybeReturnJunk(false, 0) == 42, ""); // ok
205 …constexpr int a = MaybeReturnJunk(true, 0); // expected-error {{constant expression}} expected-not…
214 return MaybeReturnJunk(true, n); // expected-note {{read of variable whose lifetime has ended}} in InternalReturnJunk()