aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-assignment-condition.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-02-02 02:20:30 +0000
committerTed Kremenek <kremenek@apple.com>2011-02-02 02:20:30 +0000
commitf7275cd4b930e658930b8a319aa06c0168a4720a (patch)
tree4ee6bbe465919d9139339eefd8ff20634f6f0933 /test/SemaCXX/warn-assignment-condition.cpp
parente349d2c61256f11180b7112ab592b4ae700f3dcf (diff)
Remove redundant check to not warn for warn_equality_with_extra_parens if we are in a macro. This is checked twice.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/warn-assignment-condition.cpp')
-rw-r--r--test/SemaCXX/warn-assignment-condition.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/SemaCXX/warn-assignment-condition.cpp b/test/SemaCXX/warn-assignment-condition.cpp
index ab9d2ad4a5..27eedb9128 100644
--- a/test/SemaCXX/warn-assignment-condition.cpp
+++ b/test/SemaCXX/warn-assignment-condition.cpp
@@ -125,12 +125,3 @@ void test2() {
if ((test2 == fn)) {}
}
-// Do not warn about extra '()' used within a macro. This pattern
-// occurs frequently.
-#define COMPARE(x,y) (x == y)
-int test3(int x, int y) {
- if (COMPARE(x, y)) // no-warning
- return 0;
- return 1;
-}
-