From: Jordan Rose Date: Wed, 20 Aug 2014 22:40:57 +0000 (+0000) Subject: [test] Turn off warnings for test/Analysis/identical-expressions.cpp. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=114cb5f69444ffd3fedad61b7765fdc18e509999;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216133 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/identical-expressions.cpp b/test/Analysis/identical-expressions.cpp index 1711d8043c..46dd56289c 100644 --- a/test/Analysis/identical-expressions.cpp +++ b/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; } }