summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr81588.c
blob: 4e83607f2a81f394e7ad0f0c8e65b52d4bfe3a58 (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
26
/* PR tree-optimization/81588 */
/* { dg-do run } */
/* { dg-options "-O2" } */

long long int a = 5011877430933453486LL, c = 1;
unsigned short b = 24847;

#include "tree-ssa/pr81588.c"

int
main ()
{
  foo ();
  if (c != 0)
    __builtin_abort ();
  a = 24846;
  c = 1;
  foo ();
  if (c != 1)
    __builtin_abort ();
  a = -5;
  foo ();
  if (c != 0)
    __builtin_abort ();
  return 0;
}