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
Require target lra in gcc.dg/pr108095.c
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vla-stexp-1.c
blob
baaad36eb12df117ec82e076213d0daebec909af
1
/* PR29970*/
2
/* { dg-do run } */
3
/* { dg-options "-Wall -O0" } */
4
/* { dg-require-effective-target alloca } */
5
6
int
foo
(
void
)
7
{
8
int
n
=
0
;
9
return sizeof
(*({
n
=
10
;
struct
foo
{
int
x
[
n
]; }
x
; &
x
; }));
10
}
11
12
13
int
main
()
14
{
15
if
(
sizeof
(
struct
foo
{
int
x
[
10
]; }) !=
foo
())
16
__builtin_abort
();
17
18
return
0
;
19
}