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
Backported from mainline
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20040423-1.c
1
int
2
sub1 (int i, int j)
3
{
4
typedef struct
5
{
6
int c[i+2];
7
}c;
8
int x[10], y[10];
9
10
if (j == 2)
11
{
12
memcpy (x, y, 10 * sizeof (int));
13
return sizeof (c);
14
}
15
else
16
return sizeof (c) * 3;
17
}
18
19
int
20
main ()
21
{
22
typedef struct
23
{
24
int c[22];
25
}c;
26
if (sub1 (20, 3) != sizeof (c)*3)
27
abort ();
28
29
return 0;
30
}