Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / gcc.c-torture / execute / 20020219-1.c
blob48200e3192b98b9f92f7c1f597c1a1e2fa315856
1 /* PR c/4308
2 This testcase failed because 0x8000000000000000 >> 0
3 was incorrectly folded into 0xffffffff00000000. */
5 extern void abort (void);
6 extern void exit (int);
8 long long foo (void)
10 long long C = 1ULL << 63, X;
11 int Y = 32;
12 X = C >> (Y & 31);
13 return X;
16 int main (void)
18 if (foo () != 1ULL << 63)
19 abort ();
20 exit (0);