blob: be85f71a6b78cdcd957adf8d8d9bf17773f550c3 [file] [log] [blame]
/* This used to ICE due to a regmove problem on s390. */
/* { dg-do compile { target s390*-*-* } } */
/* { dg-options "-O2" } */
extern void abort (void);
extern void **alloc (void);
void *test (void)
{
void **p = alloc ();
if (!p) abort ();
__builtin_set_thread_pointer (p);
return *p;
}