PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20040411-1.c
blob8db456229bd8c39efe71f8b9942cc4480ef48df5
1 int
2 sub1 (int i, int j)
4 typedef int c[i+2];
5 int x[10], y[10];
7 if (j == 2)
9 memcpy (x, y, 10 * sizeof (int));
10 return sizeof (c);
12 else
13 return sizeof (c) * 3;
16 int
17 main ()
19 if (sub1 (20, 3) != 66 * sizeof (int))
20 abort ();
22 return 0;