]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr71362.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr71362.c
1 /* PR c/71362 */
2 /* { dg-do compile } */
3
4 extern void foo (int[-1]); /* { dg-error "21:size of unnamed array is negative" } */
5
6 int
7 bar (void)
8 {
9 123 + sizeof (int[-1]); /* { dg-error "20:size of unnamed array is negative" } */
10 }