view gcc/testsuite/c-c++-common/pr58346-2.c @ 16:04ced10e8804

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

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

__PTRDIFF_TYPE__
foo (int p[3][0], int q[3][0])
{
  return p - q; /* { dg-error "arithmetic on pointer to an empty aggregate" } */
}