summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wcxx-compat-14.c
blob: 23783711be66694efa36c7239eb667c02fbcfc32 (plain)
1
2
3
4
5
6
/* { dg-do compile } */
/* { dg-options "-Wc++-compat" } */

char a1[] = "a";
char a2[1] = "a";	/* { dg-warning "C\[+\]\[+\]" } */
char a3[2] = "a";