[cfe-commits] r55801 - /cfe/trunk/test/Analysis/dead-stores.c

Ted Kremenek kremenek at apple.com
Thu Sep 4 14:52:52 PDT 2008


Author: kremenek
Date: Thu Sep  4 16:52:52 2008
New Revision: 55801

URL: http://llvm.org/viewvc/llvm-project?rev=55801&view=rev
Log:
Added test case for the dead stores checker that was originally an FP reported in PR 2763.

Modified:
    cfe/trunk/test/Analysis/dead-stores.c

Modified: cfe/trunk/test/Analysis/dead-stores.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/dead-stores.c?rev=55801&r1=55800&r2=55801&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/dead-stores.c (original)
+++ cfe/trunk/test/Analysis/dead-stores.c Thu Sep  4 16:52:52 2008
@@ -99,3 +99,12 @@
   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;
+}





More information about the cfe-commits mailing list