]> granicus.if.org Git - clang/commitdiff
[analyzer] Add a no-crash to a recently added test.
authorArtem Dergachev <artem.dergachev@gmail.com>
Mon, 23 Jul 2018 23:48:13 +0000 (23:48 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Mon, 23 Jul 2018 23:48:13 +0000 (23:48 +0000)
No functional change intended.

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

test/Analysis/casts.c

index 49db822aa138e8dce569031588b3bed7c0456d0f..eccb67812a02224994300b7d247afa406d3a1e3f 100644 (file)
@@ -173,5 +173,5 @@ void testCastVoidPtrToIntPtrThroughUIntTypedAssignment() {
 }
 
 void testLocNonLocSymbolAssume(int a, int *b) {
-  if ((int)b < a) {}
+  if ((int)b < a) {} // no-crash
 }