summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vla-9.c
blob: 506a1a2eb14ca2ec8604f5f1a04296023260f575 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile  } */
/* { dg-options "-std=c99 -pedantic-errors -W -Wall" } */
/* PR c/28280 */

void f(__SIZE_TYPE__ d)
{
  typedef int t[d];
  t *g = (__typeof (g)) d;
  (void) g;
}