PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040423-1.c
blobace797e79d350c18f06326515b4c9bab9ec4d3cb
1 int
2 sub1 (int i, int j)
4 typedef struct
6 int c[i+2];
7 }c;
8 int x[10], y[10];
10 if (j == 2)
12 memcpy (x, y, 10 * sizeof (int));
13 return sizeof (c);
15 else
16 return sizeof (c) * 3;
19 int
20 main ()
22 typedef struct
24 int c[22];
25 }c;
26 if (sub1 (20, 3) != sizeof (c)*3)
27 abort ();
29 return 0;