aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr104975.c
blob: 04532fc444340c862819685cd8cadabadd2c2cb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-options "-O1 -fharden-compares -fno-inline -fno-ipa-pure-const" } */

__attribute__ ((pure, returns_twice)) int
bar (int);

int
quux (void)
{
  return 0;
}

int
foo (short int x)
{
  x = !x;
  bar (quux ());

  return x;
}