// RUN: %clang_analyze_cc1 -verify %s \
// RUN: -analyzer-checker=alpha.clone.CloneChecker \
// RUN: -analyzer-config alpha.clone.CloneChecker:ReportNormalClones=false \
// RUN: -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10
// Tests finding a suspicious clone that references local variables.
void ;
int
int
// Tests finding a suspicious clone that references global variables.
;
mutex m1;
mutex m2;
int i;
void
void
// Tests that we provide two suggestions in cases where two fixes are possible.
int
int
// Tests that for clone groups with a many possible suspicious clone pairs, at
// most one warning per clone group is generated and every relevant clone is
// reported through either a warning or a note.
long
long
long