summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46499-2.c
blob: c3a264816d3fbce2e186908d816cf5dfe6feee55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR middle-end/46499 */
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-ccp -fno-tree-dominator-opts" } */

extern void abort (void);

static inline int
foo (void)
{
  return 0;
}

int
main ()
{
  if ((foo () == 1) & (foo () == 1))
    abort ();
  return 0;
}