2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wunused-variable" } */
8 int c
= *(*(*({ int n
= 10; int (*x
)[n
][n
] = __builtin_malloc(sizeof *x
); x
; }) + 5) + 5);
14 int c
= *(5 + *(5 + *({ int n
= 10; int (*x
)[n
][n
] = __builtin_malloc(sizeof *x
); x
; })));
20 int c
= (*({ int n
= 10; struct { int y
[n
]; int z
; }* x
= __builtin_malloc(sizeof *x
); x
; })).z
;
26 int n
= 2; /* { dg-warning "unused variable" } */
27 int c
= (*({ int n
= 3; /* { dg-warning "unused variable" } */
28 ({ int n
= 10; int (*x
)[n
][n
] = __builtin_malloc(sizeof *x
); x
; }); }))[5][5];
34 int n
= 2; /* { dg-warning "unused variable" } */
35 int c
= (*({ int n
= 3; /* { dg-warning "unused variable" } */
36 ({ int n
= 10; int (*x
)[n
][n
] = __builtin_malloc(sizeof *x
); x
; }); }))[0][0];
42 int n
= 2; /* { dg-warning "unused variable" } */
43 int c
= *(5 + *( 5 + *({ int n
= 3; /* { dg-warning "unused variable" } */
44 ({ int n
= 10; int (*x
)[n
][n
] = __builtin_malloc(sizeof *x
); x
; }); })));