aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-08-06 23:26:31 +0000
committerTed Kremenek <kremenek@apple.com>2008-08-06 23:26:31 +0000
commitefe88f5776b42ec2defb8ba29269a6c3683e9485 (patch)
tree39adbc08515491d5840470ff4e19cbae5082fe17
parentc7eb9031159f30a63db960fad4640d779f1617c8 (diff)
Enhanced test case.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54436 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/dead-stores.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Analysis/dead-stores.c b/test/Analysis/dead-stores.c
index 6811ece1fe..c291fba57e 100644
--- a/test/Analysis/dead-stores.c
+++ b/test/Analysis/dead-stores.c
@@ -87,3 +87,15 @@ int f12b(int y) {
return 1;
}
+// Filed with PR 2630. This code should produce no warnings.
+int f13(void)
+{
+ int a = 1;
+ int b, c = b = a + a;
+
+ if (b > 0)
+ return (0);
+
+ return (a + b + c);
+}
+