[cfe-commits] r54436 - /cfe/trunk/test/Analysis/dead-stores.c
Ted Kremenek
kremenek at apple.com
Wed Aug 6 16:26:31 PDT 2008
Author: kremenek
Date: Wed Aug 6 18:26:31 2008
New Revision: 54436
URL: http://llvm.org/viewvc/llvm-project?rev=54436&view=rev
Log:
Enhanced test case.
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=54436&r1=54435&r2=54436&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/dead-stores.c (original)
+++ cfe/trunk/test/Analysis/dead-stores.c Wed Aug 6 18:26:31 2008
@@ -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);
+}
+
More information about the cfe-commits
mailing list