view gcc/testsuite/gcc.dg/vla-25.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* Test [*] diagnosed on old-style parameter declaration.  PR c/88704.  */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */

void
f (x)
     int x[*];
{ /* { dg-error "not allowed in other than function prototype scope" } */
}