You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
244 B

// RUN: %clang_analyze_cc1 -analyzer-checker=core -std=c++11 -verify %s
class C {};
// expected-no-diagnostics
void f(C i) {
auto lambda = [&] { f(i); };
typedef decltype(lambda) T;
T* blah = new T(lambda);
(*blah)();
delete blah;
}