aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr109409.c
blob: 097a511c07edaea23a75268f5f2d510543599601 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR c/109409 */
/* { dg-do compile } */
/* { dg-options "-Wall" } */

void
foo (int n)
{
  const char c[n] = "1";	/* { dg-error "variable-sized object may not be initialized except with an empty initializer" } */
  __builtin_printf (c);
}