]>
Commit | Line | Data |
---|---|---|
05fb844e | 1 | /* { dg-do compile } */ |
dd277d48 | 2 | /* { dg-options "-O2 -fdump-tree-pre-details" } */ |
05fb844e | 3 | struct a |
4 | { | |
5 | int length; | |
6 | int a1[256]; | |
7 | }; | |
8 | ||
87af7218 | 9 | void *malloc(__SIZE_TYPE__ size) __attribute__((malloc)); |
05fb844e | 10 | |
7f0432c3 | 11 | int 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" } } */ |