aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/s390/stackcheck1.c
blob: ab46a92d7c71af6a7ac2033829ef753660f0fb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* The automatically chosen stack guard value caused an ICE in that
   case.  */

/* { dg-do compile } */
/* { dg-options "-O2 -mstack-size=4096" } */

extern void bar (char *);

void
foo ()
{
  char a[2500];
  bar (a);
}	/* { dg-warning "more than half" } */