repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
init
/
array1.C
blob
5847247c158d172ea654756ebca2a17ec6ab3376
1
// Test that completing an array declared with a typedef doesn't change
2
// the typedef.
3
4
// { dg-do run }
5
6
typedef int iArr[];
7
8
const iArr array4={
9
1, 2, 3, 4
10
};
11
12
const iArr array3={
13
1, 2, 3
14
};
15
16
const iArr array5={
17
1, 2, 3, 4, 5
18
};
19
20
int main()
21
{
22
if (sizeof (array4)/sizeof (array4[0]) != 4
23
|| sizeof (array3)/sizeof (array3[0]) != 3
24
|| sizeof (array5)/sizeof (array5[0]) != 5)
25
return 1;
26
}