Sign in
gnu
/
gcc
/
a10794eafb151b9274d673dfae93459d437cbe4a
/
.
/
gcc
/
testsuite
/
gcc.dg
/
vla-stexp-1.c
blob: 97d66937e9a3a85d0d009a50ea37e782fdad1a72 [
file
] [
log
] [
blame
]
/* PR29970*/
/* { dg-do run } */
/* { dg-options "-Wall -O0" } */
int
foo
(
void
)
{
int
n
=
0
;
return
sizeof
(*({
n
=
10
;
struct
foo
{
int
x
[
n
];
}
x
;
&
x
;
}));
}
int
main
()
{
if
(
sizeof
(
struct
foo
{
int
x
[
10
];
})
!=
foo
())
__builtin_abort
();
return
0
;
}