aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/sound.c
blob: 899b87d3d33f4cb68841560e2bc714f9d9dc7235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-require-stack-size "8192+4" } */

int write (int, void *, __SIZE_TYPE__);

int
main (void)
{
  char audio[8192];
  int i;

  for (i = 0;  i < 4095;  i += 1)
    audio[i] = i / 8,
    audio[8191 - i] = i / 8;

  for (;;)
    write (1, audio, 8192);
}