]> granicus.if.org Git - clang/commitdiff
Replace bitwise AND with logical AND in an expression that already had another logica...
authorCraig Topper <craig.topper@gmail.com>
Tue, 8 Dec 2015 06:49:15 +0000 (06:49 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 8 Dec 2015 06:49:15 +0000 (06:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255006 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/constant-expression-cxx1y.cpp

index a3444533ce822b72b725d8bf00b76bb87d2fea8a..e9ecbe83b3daa69e0f90560eac34628c9d0e0e0d 100644 (file)
@@ -462,7 +462,7 @@ namespace loops {
       if ((c % 7) == 0) break;
     } while (c != 21);
 
-    return a == 10 && b == 12 & c == 14;
+    return a == 10 && b == 12 && c == 14;
   }
   static_assert(breaks_work(), "");