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
http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
array2.C
blob
ca03ff39c57d73e2499eeb91699adc82e389ad09
1
// Check that the type of an array is set correctly when flat initializers
2
// are used.
3
4
// { dg-do compile }
5
6
struct s { int a; int b; };
7
struct s x[] = { 1, 2, 3, 4 };
8
int y[sizeof (x) == 2 * sizeof (x[0])? 1 : -1];