blob: c447ef95b6c1fa0c065ec18fd8c20de3048c8279 [file] [log] [blame]
/* PR target/60941 */
/* Reported by Martin Husemann <martin@netbsd.org> */
extern void abort (void);
static void __attribute__((noinline))
set (unsigned long *l)
{
*l = 31;
}
int main (void)
{
unsigned long l;
int i;
set (&l);
i = (int) l;
l = (unsigned long)(2U << i);
if (l != 0)
abort ();
return 0;
}