repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vla-stexp-1.c
blob
97d66937e9a3a85d0d009a50ea37e782fdad1a72
1
/* PR29970*/
2
/* { dg-do run } */
3
/* { dg-options "-Wall -O0" } */
4
5
int
foo
(
void
)
6
{
7
int
n
=
0
;
8
return sizeof
(*({
n
=
10
;
struct
foo
{
int
x
[
n
]; }
x
; &
x
; }));
9
}
10
11
12
int
main
()
13
{
14
if
(
sizeof
(
struct
foo
{
int
x
[
10
]; }) !=
foo
())
15
__builtin_abort
();
16
17
return
0
;
18
}