summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/950426-2.c
blob: a1a690469d17b4820280c5ad4aba3f95377b80e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
main()
{
  long int i = -2147483647L - 1L; /* 0x80000000 */
  char ca = 1;

  if (i >> ca != -1073741824L)
    abort ();

  if (i >> i / -2000000000L != -1073741824L)
    abort ();

  exit (0);
}