]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr23382.c
2009-04-03 Richard Guenther <rguenther@suse.de>
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr23382.c
CommitLineData
05fb844e 1/* { dg-do compile } */
dd277d48 2/* { dg-options "-O2 -fdump-tree-pre-details" } */
05fb844e 3struct a
4{
5 int length;
6 int a1[256];
7};
8
87af7218 9void *malloc(__SIZE_TYPE__ size) __attribute__((malloc));
05fb844e 10
7f0432c3 11int f(void)
05fb844e 12{
13 struct a *a = malloc(sizeof(struct a));
78c07c47 14 return a->length;
05fb844e 15}
dd277d48 16/* { dg-final { scan-tree-dump-times "Variable: HEAP" 1 "pre"} } */
17/* { dg-final { cleanup-tree-dump "pre" } } */