* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20010116-1.c
blobb77d6fb8123d4212b6cbfa7767485eada0e4906f
1 /* Distilled from optimization/863. */
3 extern void abort (void);
4 extern void exit (int);
5 extern void ok (int);
7 typedef struct
9 int x, y, z;
10 } Data;
12 void find (Data *first, Data *last)
14 int i;
15 for (i = (last - first) >> 2; i > 0; --i)
16 ok(i);
17 abort ();
20 void ok(int i)
22 if (i != 1)
23 abort ();
24 exit (0);
27 int
28 main ()
30 Data DataList[4];
31 find (DataList + 0, DataList + 4);