Fix unused warnings.
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.c-torture / execute / pr7284-1.c
blobde0057cebb0e8dc665fe6ea9c1930b6de8562edf
1 /* Signed left-shift is implementation-defined in C89 (and see
2 DR#081), not undefined. Bug 7284 from Al Grant (AlGrant at
3 myrealbox.com). */
5 /* { dg-options "-std=c89" } */
7 extern void abort (void);
8 extern void exit (int);
10 int
11 f (int n)
13 return (n << 24) / (1 << 23);
16 volatile int x = 128;
18 int
19 main (void)
21 if (f(x) != -256)
22 abort ();
23 exit (0);