]> granicus.if.org Git - clang/commitdiff
Added test case for the dead stores checker that was originally an FP reported in...
authorTed Kremenek <kremenek@apple.com>
Thu, 4 Sep 2008 21:52:52 +0000 (21:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 4 Sep 2008 21:52:52 +0000 (21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55801 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/dead-stores.c

index c291fba57e97f30913f0524a456b0affbb132876..d87a5591a348bfb9962f6afd5a947d520dae64ac 100644 (file)
@@ -99,3 +99,12 @@ int f13(void)
   return (a + b + c);
 }
 
+// Filed with PR 2763.
+int f41(int count) {
+  int index, nextLineIndex;
+  for (index = 0; index < count; index = nextLineIndex+1) {
+    nextLineIndex = index+1;  // no-warning
+    continue;
+  }
+  return index;
+}