aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20030123-1.c
blob: 319e4526a4a92447c9faaf83525f0feaa3a09510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* This used to ICE due to a reload bug on s390*.  */

/* { dg-do compile { target s390*-*-* } } */
/* { dg-options "-O2 -fno-omit-frame-pointer" } */

extern void *alloca (__SIZE_TYPE__);

void func (char *p);

void test (void)
{
   char *p = alloca (4096);
   long idx;

   asm ("" : "=r" (idx) : : "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "12");

   func (p + idx + 1);
}