]> granicus.if.org Git - clang/commitdiff
[test] Turn off warnings for test/Analysis/identical-expressions.cpp.
authorJordan Rose <jordan_rose@apple.com>
Wed, 20 Aug 2014 22:40:57 +0000 (22:40 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 20 Aug 2014 22:40:57 +0000 (22:40 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216133 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/identical-expressions.cpp

index 1711d8043c1f000467b34909daaf77e70eecff63..46dd56289c4effc4ae8a8fe61b96ceacb99db1d5 100644 (file)
@@ -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;
   }
 }