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
/
c-c++-common
/
array-lit.c
blob
6505c2091b47055bd51000e53211c93962dfbf5d
1
/* { dg-options "-std=c99 -Wc++-compat -Werror" { target c } } */
2
/* { dg-prune-output "treated as errors" } */
3
#include <stdio.h>
4
5
int
main
()
6
{
7
for
(
int
*
p
= (
int
[]){
1
,
2
,
3
,
0
};
/* { dg-error "array" } */
8
*
p
; ++
p
) {
9
printf
(
"%d
\n
"
, *
p
);
10
}
11
return
0
;
12
}