2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr58554.c
blob269171ae941688e7c96ebba5bc2f1843a71e70cf
1 /* { dg-do run } */
3 extern void abort (void);
4 void __attribute__((noinline,noclone))
5 clear_board(unsigned char *board, int board_size)
7 int k;
8 for (k = 0; k < 421; k++)
9 if (k < board_size )
10 board[k] = 3;
12 int main()
14 unsigned char board[421];
15 board[420] = 1;
16 clear_board (board, 420);
17 if (board[420] != 1)
18 abort ();
19 return 0;