diff options
Diffstat (limited to 'test/Analysis/fields.c')
-rw-r--r-- | test/Analysis/fields.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/fields.c b/test/Analysis/fields.c index c97d4f8..0827f3d 100644 --- a/test/Analysis/fields.c +++ b/test/Analysis/fields.c @@ -17,3 +17,13 @@ void f() { struct s a; int *p = &(a.n) + 1; } + +typedef struct { + int x,y; +} Point; + +Point getit(void); +void test() { + Point p; + (void)(p = getit()).x; +} |