From: Zhongxing Xu Date: Mon, 27 Oct 2008 09:19:25 +0000 (+0000) Subject: Add test for SCA region store. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=234a7d2bf50ba55496433f896577838407119e1a;p=clang Add test for SCA region store. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58234 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index 4b23421a3d..911f41870d 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -6,6 +6,10 @@ struct s { int data_array[10]; }; +typedef struct { + int data; +} STYPE; + void f(void) { int a[10]; int (*p)[10]; @@ -24,3 +28,7 @@ void f2() { char (*q)[4]; q = &"abc"; } + +void f3() { + STYPE s; +}