[cfe-commits] r68046 - /cfe/trunk/test/Analysis/uninit-vals.c
Ted Kremenek
kremenek at apple.com
Mon Mar 30 11:29:28 PDT 2009
Author: kremenek
Date: Mon Mar 30 13:29:27 2009
New Revision: 68046
URL: http://llvm.org/viewvc/llvm-project?rev=68046&view=rev
Log:
Add another uninitialized values test case illustrating that the CFG correctly
handles declarations with multiple variables.
Modified:
cfe/trunk/test/Analysis/uninit-vals.c
Modified: cfe/trunk/test/Analysis/uninit-vals.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/uninit-vals.c?rev=68046&r1=68045&r2=68046&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/uninit-vals.c (original)
+++ cfe/trunk/test/Analysis/uninit-vals.c Mon Mar 30 13:29:27 2009
@@ -44,3 +44,10 @@
x += y; // expected-warning {{use of uninitialized variable}}
}
}
+
+int f8(int j) {
+ int x = 1, y = x + 1;
+ if (y) // no-warning
+ return x;
+ return y;
+}
More information about the cfe-commits
mailing list