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
2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vla-3.c
blob
51dae42f7ecb598296b34e570c381ae5a313a64f
1
/* { dg-do compile } */
2
/* { dg-options "-std=gnu99" } */
3
/* { dg-require-effective-target alloca } */
4
5
/* This used to crash as we did not preserve the correct type
6
for __SIZE_TYPE__. See PR22439. */
7
8
char
foo
(
__SIZE_TYPE__ n
)
9
{
10
char
c
[
1
][
n
];
11
return
c
[
0
][
0
];
12
}