[cfe-commits] r68326 - /cfe/trunk/test/Analysis/uninit-vals-ps.c
Ted Kremenek
kremenek at apple.com
Thu Apr 2 10:25:00 PDT 2009
Author: kremenek
Date: Thu Apr 2 12:25:00 2009
New Revision: 68326
URL: http://llvm.org/viewvc/llvm-project?rev=68326&view=rev
Log:
Add a few more analyzer test cases.
Modified:
cfe/trunk/test/Analysis/uninit-vals-ps.c
Modified: cfe/trunk/test/Analysis/uninit-vals-ps.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/uninit-vals-ps.c?rev=68326&r1=68325&r2=68326&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/uninit-vals-ps.c (original)
+++ cfe/trunk/test/Analysis/uninit-vals-ps.c Thu Apr 2 12:25:00 2009
@@ -43,6 +43,21 @@
return 1;
}
+void f4_aux(float* x);
+float f4(void) {
+ float x;
+ f4_aux(&x);
+ return x; // no-warning
+}
+
+struct f5_struct { int x; };
+void f5_aux(struct f5_struct* s);
+int f5(void) {
+ struct f5_struct s;
+ f5_aux(&s);
+ return s.x; // no-warning
+}
+
int ret_uninit() {
int i;
int *p = &i;
More information about the cfe-commits
mailing list