bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
25 lines
326 B
C
25 lines
326 B
C
/* { dg-do run } */
|
|
|
|
/* PR c/8224 */
|
|
/* Contributed by Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz> */
|
|
|
|
extern void abort (void);
|
|
|
|
unsigned f (int x)
|
|
{
|
|
return (unsigned) (x / 2) / 2;
|
|
}
|
|
|
|
unsigned f1 (int x)
|
|
{
|
|
unsigned xx = x / 2;
|
|
return xx / 2;
|
|
}
|
|
|
|
int main ()
|
|
{
|
|
if (f1 (-5) != f (-5))
|
|
abort ();
|
|
return 0;
|
|
}
|