Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[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" } */