summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp43.c
blob: f475354dcfe1e8210fed27e6c4f63cd086dd9e95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */
/* { dg-options "-O2" } */

int __attribute__((noinline))
foo(int i)
{
  if (i != 0)
    {
      char c = (char)i;
      return c != 0;
    }
  return 0;
}

extern void abort (void);

int main()
{
  if (foo(0xff00))
    abort ();
  return 0;
}