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
-// 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. */
}
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;
}
}