brintos

brintos / llvm-project-archived public Read only

0
0
Text · 288 B · 4d9edb7 Raw
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