OSDN Git Service

2010-01-21 Martin Jambor <mjambor@suse.cz>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / tree-ssa / pr34123.c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-linear" } */
3
4 /* Testcase by Martin Michlmayr <tbm@cyrius.com> */
5
6 static unsigned char sbox[256] = {
7 };
8 void MD2Transform (unsigned char state[16])
9 {
10   unsigned char t = 0;
11   int i, j;
12   for (i = 0; i < 16; i++)
13     {
14       for (j = 0; j < 2; j++)
15         t = (state[j] ^= sbox[t]);
16       t += i;
17     }
18 }