c: minor fixes related to arrays of unspecified size
[official-gcc.git] / gcc / testsuite / c-c++-common / pr58346-2.c
blob195060e420c358ccabc3a513d3a43d71c8b36562
1 /* PR c/58346 */
2 /* { dg-do compile } */
4 __PTRDIFF_TYPE__
5 foo (int p[3][0], int q[3][0])
7 return p - q; /* { dg-error "arithmetic on pointer to an empty aggregate" } */