summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/copypaste/false-positives.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Analysis/copypaste/false-positives.cpp')
-rw-r--r--clang/test/Analysis/copypaste/false-positives.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/clang/test/Analysis/copypaste/false-positives.cpp b/clang/test/Analysis/copypaste/false-positives.cpp
deleted file mode 100644
index 4c6275949da..00000000000
--- a/clang/test/Analysis/copypaste/false-positives.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// RUN: %clang_cc1 -analyze -std=c++11 -analyzer-checker=alpha.clone.CloneChecker -verify %s
-
-// This test contains false-positive reports from the CloneChecker that need to
-// be fixed.
-
-void log();
-
-int max(int a, int b) { // expected-warning{{Detected code clone.}}
- log();
- if (a > b)
- return a;
- return b;
-}
-
-// FIXME: Detect different variable patterns.
-int min2(int a, int b) { // expected-note{{Related code clone is here.}}
- log();
- if (b > a)
- return a;
- return b;
-}
OpenPOWER on IntegriCloud