commit | efe88f5776b42ec2defb8ba29269a6c3683e9485 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Wed Aug 06 23:26:31 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Wed Aug 06 23:26:31 2008 +0000 |
tree | 39adbc08515491d5840470ff4e19cbae5082fe17 | |
parent | c7eb9031159f30a63db960fad4640d779f1617c8 [diff] |
Enhanced test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54436 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Analysis/dead-stores.c b/test/Analysis/dead-stores.c index 6811ece..c291fba 100644 --- a/test/Analysis/dead-stores.c +++ b/test/Analysis/dead-stores.c
@@ -87,3 +87,15 @@ 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); +} +