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 rtl-optimization/88018
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
pr70756-2.c
blob
b7df3b798539baac1fbc51be24d3e10608365b0f
1
/* PR c/70756 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wpointer-arith" } */
4
5
extern
void
bar
(
void
);
6
7
void
8
fn
(
void
*
p
)
9
{
10
void
*
a
=
p
+
1
;
/* { dg-warning "15:pointer of type" } */
11
void
(*
a2
)(
void
) = &
bar
+
1
;
/* { dg-warning "27:pointer to a function" } */
12
}