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
Wattributes-10.c: Add -fno-common option on hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
c-c++-common
/
Wpointer-arith-1.c
blob
86668ef1b7ec5c1b1cec350419492bdf658872f5
1
/* { dg-do compile } */
2
/* { dg-options "-Wpedantic -Wno-pointer-arith" } */
3
4
void
h
(
void
)
5
{
6
typedef
void
(*
pft
) ();
7
typedef
void
(
ft
) ();
8
9
void
*
pv
=
0
;
10
pft pf
=
0
;
11
12
pv
++;
13
pf
++;
14
15
--
pv
;
16
--
pf
;
17
18
pv
+=
1
;
19
pf
+=
1
;
20
21
pv
=
pv
-
1
;
22
pf
=
pf
-
1
;
23
24
sizeof
(
void
);
25
sizeof
(
ft
);
26
}