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