1*561f0de6SRaphael Isemann // RUN: %clang_analyze_cc1 -fcxx-exceptions -std=c++1z -analyzer-checker=alpha.clone.CloneChecker -analyzer-config alpha.clone.CloneChecker:MinimumCloneComplexity=10 -verify %s 278692ea5SArtem Dergachev 378692ea5SArtem Dergachev // Tests if function try blocks are correctly handled. 478692ea5SArtem Dergachev nonCompoundStmt1(int & x)578692ea5SArtem Dergachevvoid nonCompoundStmt1(int& x) 64eca0de7SArtem Dergachev try { x += 1; } catch(...) { x -= 1; } // expected-warning{{Duplicate code detected}} 778692ea5SArtem Dergachev nonCompoundStmt2(int & x)878692ea5SArtem Dergachevvoid nonCompoundStmt2(int& x) 94eca0de7SArtem Dergachev try { x += 1; } catch(...) { x -= 1; } // expected-note{{Similar code here}} 10