repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RISCV] Add shrinkwrap test cases showing gaps in current impl
[llvm-project.git]
/
clang
/
test
/
Analysis
/
nonnullparamchecker-crash.cpp
blob
76480f4d92f2ba18de53e6107ee02d92216f2c82
1
// RUN: %clang_analyze_cc1 -analyzer-checker=core -std=c++11 -verify %s
2
class
C
{};
3
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
;
11
}