OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/29175
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
array1.C
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
}