2018-11-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr79351.c
blob0e145eb7e3b60ae7cf1c9aa964eb51e29201315b
1 /* { dg-do run } */
3 static struct state {
4 int k;
5 int dummy;
6 } states[256];
8 __attribute((noipa))
9 static void
10 ismatch(int n)
12 for (int j=0; j<n; j++) {
13 states[j] = (struct state){0};
14 for (int i = 0; i <= j; i++) {
15 states[i].k++;
20 int
21 main()
23 ismatch(2);
24 if (states[0].k != 2)
25 __builtin_abort();