summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr27639.c
blob: cb7b1429d4d489b59cd4b5deb8c67ae830118333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -std=c99" } */
#if(__SIZEOF_INT__ >= 4)
char heap[50000];
#else
char heap[32000];
#endif
int
main ()
{
  for (unsigned ix = sizeof (heap); ix--;)
    heap[ix] = ix;
  return 0;
}