Debian Codegraph @

clang/test/Analysis/Checkers/WebKit/uncounted-lambda-captures-find-lambda-crash.cpp

raw
1 // RUN: %clang_analyze_cc1 -analyzer-checker=webkit.UncountedLambdaCapturesChecker -verify %s
2 // expected-no-diagnostics
3
4 struct Foo {
5 int x;
6 int y;
7 Foo(int x, int y) : x(x) , y(y) { }
8 ~Foo() { }
9 };
10
11 Foo bar(const Foo&);
12 void foo() {
13 int x = 7;
14 int y = 5;
15 bar(Foo(x, y));
16 }