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

extern void link_error (void);

void foo (int i)
{
  if (i > -128 && i < 127)
    {
      unsigned char k = i;
      if (k == 0x80)
        link_error ();
      if (k == 0x7f)
        link_error ();
    }
}

int main() { return 0; }