Merge from mainline
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 20060110-2.c
blobbf60f94366a94124a734677a5e747521ee0f9433
1 extern void abort (void);
3 long long
4 f (long long a, long long b)
5 {
6 return ((a + b) << 32) >> 32;
7 }
9 long long a = 0x1234567876543210LL;
10 long long b = 0x2345678765432101LL;
11 long long c = ((0x1234567876543210LL + 0x2345678765432101LL) << 32) >> 32;
13 int
14 main ()
16 if (f (a, b) != c)
17 abort ();
18 return 0;