r216133 - [test] Turn off warnings for test/Analysis/identical-expressions.cpp.

Jordan Rose jordan_rose at apple.com
Wed Aug 20 15:40:57 PDT 2014


Author: jrose
Date: Wed Aug 20 17:40:57 2014
New Revision: 216133

URL: http://llvm.org/viewvc/llvm-project?rev=216133&view=rev
Log:
[test] Turn off warnings for test/Analysis/identical-expressions.cpp.

Also, make it slightly clearer what's being tested by only differentiating integer
literals based on their suffix, rather than using a very large constant.

Modified:
    cfe/trunk/test/Analysis/identical-expressions.cpp

Modified: cfe/trunk/test/Analysis/identical-expressions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/identical-expressions.cpp?rev=216133&r1=216132&r2=216133&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/identical-expressions.cpp (original)
+++ cfe/trunk/test/Analysis/identical-expressions.cpp Wed Aug 20 17:40:57 2014
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core.IdenticalExpr -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.core.IdenticalExpr -w -verify %s
 
 /* Only one expected warning per function allowed at the very end. */
 
@@ -1520,13 +1520,13 @@ void test_nowarn_wchar() {
 }
 
 void test_nowarn_long() {
-  int a =0, b = 0;
+  int a = 0, b = 0;
   long c;
   if (0) {
     b -= a;
     c = 0;
   } else { // no-warning
     b -= a;
-    c = 0xFFFFFFFFFFFFFFFF;
+    c = 0LL;
   }
 }





More information about the cfe-commits mailing list