[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git] / clang / test / Analysis / nonnullparamchecker-crash.cpp
blob76480f4d92f2ba18de53e6107ee02d92216f2c82
1 // RUN: %clang_analyze_cc1 -analyzer-checker=core -std=c++11 -verify %s
2 class C {};
4 // expected-no-diagnostics
5 void f(C i) {
6 auto lambda = [&] { f(i); };
7 typedef decltype(lambda) T;
8 T* blah = new T(lambda);
9 (*blah)();
10 delete blah;