aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-09-04 21:52:52 +0000
committerTed Kremenek <kremenek@apple.com>2008-09-04 21:52:52 +0000
commitb497ebdce35c708e902db2d49183925a612b4914 (patch)
tree74ef8c06313a8fcd9b00452f4dbf64971b037527
parente933450535ab077b95e59f929a4ccb25b6f360e6 (diff)
Added test case for the dead stores checker that was originally an FP reported in PR 2763.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55801 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/dead-stores.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Analysis/dead-stores.c b/test/Analysis/dead-stores.c
index c291fba57e..d87a5591a3 100644
--- a/test/Analysis/dead-stores.c
+++ b/test/Analysis/dead-stores.c
@@ -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;
+}