view gcc/testsuite/gcc.dg/pr71362.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* PR c/71362 */
/* { dg-do compile } */

extern void foo (int[-1]); /* { dg-error "21:size of unnamed array is negative" } */

int
bar (void)
{
  123 + sizeof (int[-1]); /* { dg-error "20:size of unnamed array is negative" } */
}