| commit | 58f8b590e132dd74ad9035a82369205a95d807e8 | [log] [tgz] |
|---|---|---|
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Feb 03 22:01:32 2011 +0000 |
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu Feb 03 22:01:32 2011 +0000 |
| tree | 2e1ea4a7b3b6ad11160c515d0234bc91e5b7686d | |
| parent | 4e03719cce3ce3d23f245ab3260bb3619005220f [diff] [blame] |
[analyzer] Fix a crash until we can handle temporary struct objects properly. llvm-svn: 124822
diff --git a/clang/test/Analysis/fields.c b/clang/test/Analysis/fields.c index c97d4f8..0827f3d 100644 --- a/clang/test/Analysis/fields.c +++ b/clang/test/Analysis/fields.c
@@ -17,3 +17,13 @@ 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; +}