diff options
Diffstat (limited to 'clang/test/Analysis/fields.c')
-rw-r--r-- | clang/test/Analysis/fields.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Analysis/fields.c b/clang/test/Analysis/fields.c index c97d4f82cdc..0827f3dbad1 100644 --- a/clang/test/Analysis/fields.c +++ b/clang/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; +} |