repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR target/83368
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
pr58346-2.c
blob
195060e420c358ccabc3a513d3a43d71c8b36562
1
/* PR c/58346 */
2
/* { dg-do compile } */
3
4
__PTRDIFF_TYPE__
5
foo
(
int
p
[
3
][
0
],
int
q
[
3
][
0
])
6
{
7
return
p
-
q
;
/* { dg-error "arithmetic on pointer to an empty aggregate" } */
8
}