r337776 - [analyzer] Add a no-crash to a recently added test.

Artem Dergachev via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 23 16:48:13 PDT 2018


Author: dergachev
Date: Mon Jul 23 16:48:13 2018
New Revision: 337776

URL: http://llvm.org/viewvc/llvm-project?rev=337776&view=rev
Log:
[analyzer] Add a no-crash to a recently added test.

No functional change intended.

Modified:
    cfe/trunk/test/Analysis/casts.c

Modified: cfe/trunk/test/Analysis/casts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/casts.c?rev=337776&r1=337775&r2=337776&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/casts.c (original)
+++ cfe/trunk/test/Analysis/casts.c Mon Jul 23 16:48:13 2018
@@ -173,5 +173,5 @@ void testCastVoidPtrToIntPtrThroughUIntT
 }
 
 void testLocNonLocSymbolAssume(int a, int *b) {
-  if ((int)b < a) {}
+  if ((int)b < a) {} // no-crash
 }




More information about the cfe-commits mailing list