commit | c2e20d0c42cf085940c9a9cb495a7116d1b0eb07 | [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 | 92d6bdbe95aaf8017baca8aab64ca1efea7ae42b | |
parent | afdf137c50f7f96ef865cf007f660dd663a8731f [diff] [blame] |
[analyzer] Fix a crash until we can handle temporary struct objects properly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124822 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ 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; +}