blob: 28677a0949bf9e1d397c06e77c7f8ac132d1c279 [file] [log] [blame]
// RUN: %clang_cc1 -std=c++11 -verify %s
// expected-no-diagnostics
// Do not crash when __PRETTY_FUNCTION__ appears in the trailing return type of the lambda
void foo() {
[]() -> decltype(static_cast<const char*>(__PRETTY_FUNCTION__)) {
return nullptr;
}();
#ifdef MS
[]() -> decltype(static_cast<const char*>(__FUNCSIG__)) {
return nullptr;
}();
#endif
}