blob: 4d9edb75b7ff367fdab7d3134e9e1c63dbe01e3d [file] [log] [blame]
// RUN: %clang_analyze_cc1 -analyzer-checker=webkit.UncountedLambdaCapturesChecker -verify %s
// expected-no-diagnostics
struct Foo {
int x;
int y;
Foo(int x, int y) : x(x) , y(y) { }
~Foo() { }
};
Foo bar(const Foo&);
void foo() {
int x = 7;
int y = 5;
bar(Foo(x, y));
}