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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr109409.c
blob
097a511c07edaea23a75268f5f2d510543599601
1
/* PR c/109409 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wall" } */
4
5
void
6
foo
(
int
n
)
7
{
8
const char
c
[
n
] =
"1"
;
/* { dg-error "variable-sized object may not be initialized except with an empty initializer" } */
9
__builtin_printf
(
c
);
10
}