From 562c4d90418996c927f43e89250570d9967d6ecc Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Fri, 23 Jan 2009 11:22:12 +0000 Subject: Implement retrieval of the default value of element and field regions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62847 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/array-struct.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/Analysis/array-struct.c') diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index 326c2888a0..a8de8245cd 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -87,3 +87,11 @@ void f10() { char a1[4] = "abc"; char a3[6] = "abc"; } + +// Retrieve the default value of element/field region. +void f11() { + struct s a; + g(&a); + if (a.data == 0) // no-warning + a.data = 1; +} -- cgit v1.2.3-70-g09d2