summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20000523-1.c
blob: 6382ba4a1bfe6029dcb3831e094eaf45c40eacff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
int
main (void)
{
  long long   x;
  int         n;

  if (sizeof (long long) < 8)
    exit (0);
  
  n = 9;
  x = (((long long) n) << 55) / 0xff; 

  if (x == 0)
    abort ();

  x = (((long long) 9) << 55) / 0xff;

  if (x == 0)
    abort ();

  exit (0);
}