summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-930603-2.c
blob: b89c455690c0be471462407fc9aa6ef05e40fd29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
   930603-2.c from the execute part of the gcc torture suite.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

int w[2][2];

void
f (void)
{
  int i, j;

  for (i = 0; i < 2; i++)
    for (j = 0; j < 2; j++)
      if (i == j)
	w[i][j] = 1;
}

void
testTortureExecute (void)
{
  f ();
  ASSERT(!(w[0][0] != 1 || w[1][1] != 1 || w[1][0] != 0 || w[0][1] != 0));
  return;
}