mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
41f33e2b18
llvm-svn: 327591
12 lines
244 B
C++
12 lines
244 B
C++
// 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;
|
|
}
|