summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/960302-1.c
blob: 7a9426a4635a0ae8b532b63dc193962ffbacf550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
long a = 1;

foo ()
{
  switch (a % 2 % 2 % 2 % 2 % 2 % 2 % 2 % 2)
    {
    case 0:
      return 0;
    case 1:
      return 1;
    default:
      return -1;
    }
}

main ()
{
  if (foo () != 1)
    abort ();
  exit (0);
}