From 04b90bc00fc6ce8bc6c559e56220ceb77cdbccf6 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Sun, 2 Nov 2008 13:17:44 +0000 Subject: Add function side-effect test cast. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58565 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/array-struct.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/Analysis/array-struct.c') diff --git a/test/Analysis/array-struct.c b/test/Analysis/array-struct.c index ed8b0e5cf3..d6d365d8bb 100644 --- a/test/Analysis/array-struct.c +++ b/test/Analysis/array-struct.c @@ -10,6 +10,8 @@ typedef struct { int data; } STYPE; +void g1(struct s* p); + void f(void) { int a[10]; int (*p)[10]; @@ -37,3 +39,8 @@ void f4() { int a[] = { 1, 2, 3}; int b[3] = { 1, 2 }; } + +void f5() { + struct s data; + g1(&data); +} -- cgit v1.2.3-18-g5258