1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -fblocks -verify %s
3 // expected-no-diagnostics
5 namespace block_rvo_crash {
12 // This used to crash when finding construction context for getA()
13 // (which is use()'s argument due to RVO).
15 return getA(); // no-crash
18 } // namespace block_rvo_crash