From: Ted Kremenek Date: Wed, 6 Aug 2008 23:26:31 +0000 (+0000) Subject: Enhanced test case. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=efe88f5776b42ec2defb8ba29269a6c3683e9485;p=clang 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 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); +} +