summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20020328-1.c
blob: 4b6f2bf4e211aa8f375af0c5a49cf8d8f52ca328 (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
int b = 0;

func () { }

void
testit(int x)
{
  if (x != 20)
    abort ();
}

int
main()

{
  int a = 0;

  if (b)
    func();

  /* simplify_and_const_int would incorrectly omit the mask in
     the line below.  */
  testit ((a + 23) & 0xfffffffc);
  exit (0);
}