blob: 2109245e62265fc41d93f36e7c478e023e34ae43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do run } */
int z = 5;
int a[6] = { 0, 0, 0, 0, 0, 1 };
int main()
{
for (int x = 5; x; x--)
for (int y = z; y >= x; y--)
a[y - x] += a[y];
if (a[0] != 7)
__builtin_abort ();
return 0;
}
|