[cfe-commits] r67154 - /cfe/trunk/test/Analysis/array-struct.c
Zhongxing Xu
xuzhongxing at gmail.com
Tue Mar 17 19:07:30 PDT 2009
Author: zhongxingxu
Date: Tue Mar 17 21:07:30 2009
New Revision: 67154
URL: http://llvm.org/viewvc/llvm-project?rev=67154&view=rev
Log:
add test case.
Modified:
cfe/trunk/test/Analysis/array-struct.c
Modified: cfe/trunk/test/Analysis/array-struct.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/array-struct.c?rev=67154&r1=67153&r2=67154&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/array-struct.c (original)
+++ cfe/trunk/test/Analysis/array-struct.c Tue Mar 17 21:07:30 2009
@@ -104,3 +104,18 @@
unsigned i = 0;
list[i] = 1;
}
+
+struct s1 {
+ struct s2 {
+ int d;
+ } e;
+};
+
+// The binding of a.e.d should not be removed. Test recursive subregion map
+// building: a->e, e->d. Only then 'a' could be added to live region roots.
+void f13(double timeout) {
+ struct s1 a;
+ a.e.d = (long) timeout;
+ if (a.e.d == 10)
+ a.e.d = 4;
+}
More information about the cfe-commits
mailing list