Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / copypaste / expr-types.cpp
blob6062be306e2dd27c995f1cfecbb04ab149127d11
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
6 int foo1(int a, int b) {
7 if (a > b)
8 return a;
9 return b;
12 // Different types, so not a clone
13 int foo2(long a, long b) {
14 if (a > b)
15 return a;
16 return b;