1 // RUN: %clang_analyze_cc1 -std=c++11 -analyzer-checker=alpha.clone.CloneChecker -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10 -verify %s
3 // This tests if sub-sequences can match with normal sequences.
8 int max(int a
, int b
) {
10 log(); // expected-warning{{Duplicate code detected}}
16 int maxClone(int a
, int b
) {
17 log(); // expected-note{{Similar code here}}
23 // Functions below are not clones and should not be reported.
25 int foo(int a
, int b
) { // no-warning