// RUN: %clang_analyze_cc1 -analyzer-checker=core -fblocks -verify %s
// expected-no-diagnostics
namespaceblock_rvo_crash{structA{};
A getA();voiduse(A a){}voidfoo(){// This used to crash when finding construction context for getA()
// (which is use()'s argument due to RVO).
use(^{returngetA();// no-crash
}());}}// namespace block_rvo_crash