summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr48098.c
blob: cd72939374fac61fcf4d2177b428113cb36c37e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

void
foo (int n)
{
  static char *__restrict *p;
  int i;
  p = __builtin_malloc (n);
  for (i = 0; i < n; i++)
    p[i] = 0;
}