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
PR tree-optimization/67955
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
complit3.C
blob
a54a8bce1f9ee65cb9d21786f06a4dc9fbbed16a
1
// { dg-options "" }
2
3
int Compound_Literals_0()
4
{
5
static int y[] = (int []) {1, 2, 3}; // { dg-error "init" }
6
static int z[] = (int [3]) {1}; // { dg-error "init" }
7
return y[0]+z[0];
8
}