Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / copypaste / lambda.cpp
blob456d83a995b1310c86f15a3cd6c9a702c98834c5
1 // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=alpha.clone.CloneChecker -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10 -verify %s
3 // expected-no-diagnostics
5 void foo1(int a, long b) {
6 auto l = [a, b](){};
9 void foo2(int a, long b) {
10 auto l = [&a, b](){};
13 void foo3(int a, long b) {
14 auto l = [a](){};
17 void foo4(int a, long b) {
18 auto l = [=](){};
21 void foo5(int a, long b) {
22 auto l = [&](){};