summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/s390/20050409-1.c
blob: 4763afad36ec8d36345f598d09781fae00f97ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* This used to ICE due to a regmove problem on s390.  */

/* { dg-do compile } */
/* { 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;
}