diff options
author | Jordan Rose <jordan_rose@apple.com> | 2014-08-20 22:40:57 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2014-08-20 22:40:57 +0000 |
commit | 50de57df6d0a706ea5451e1ccf8878d8298ae9c7 (patch) | |
tree | 14185306b59f2e1c4d63d781e09d275b981c373d /clang/test/Analysis/identical-expressions.cpp | |
parent | deb82eab3e1b125415a8bea17c2be683e121b7df (diff) | |
download | bcm5719-llvm-50de57df6d0a706ea5451e1ccf8878d8298ae9c7.tar.gz bcm5719-llvm-50de57df6d0a706ea5451e1ccf8878d8298ae9c7.zip |
[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.
llvm-svn: 216133
Diffstat (limited to 'clang/test/Analysis/identical-expressions.cpp')
-rw-r--r-- | clang/test/Analysis/identical-expressions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/test/Analysis/identical-expressions.cpp b/clang/test/Analysis/identical-expressions.cpp index 1711d8043c1..46dd56289c4 100644 --- a/clang/test/Analysis/identical-expressions.cpp +++ b/clang/test/Analysis/identical-expressions.cpp @@ -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; } } |