Sign in
gnu
/
gcc
/
refs/heads/devel/c++-contracts
/
.
/
gcc
/
testsuite
/
c-c++-common
/
pr58346-2.c
blob: 195060e420c358ccabc3a513d3a43d71c8b36562 [
file
] [
log
] [
blame
]
/* 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" } */
}