Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / 20030606-1.c
blob51054d90a2557546a6fc8a42d3813c49b8de1c17
2 int * foo (int *x, int b)
5 *(x++) = 55;
6 if (b)
7 *(x++) = b;
9 return x;
12 main()
14 int a[5];
16 memset (a, 1, sizeof (a));
18 if (foo(a, 0) - a != 1 || a[0] != 55 || a[1] != a[4])
19 abort();
21 memset (a, 1, sizeof (a));
23 if (foo(a, 2) - a != 2 || a[0] != 55 || a[1] != 2)
24 abort();
26 exit (0);