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
LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wincompatible-pointer-types.c
blob
e765b27609abafbdf1d44ca7b6c0855afd0d2d1e
1
/* PR c/58286 */
2
/* { dg-do compile } */
3
/* { dg-options "-Wno-incompatible-pointer-types" } */
4
5
void
6
fn2
(
short
*
s
,
long
*
l
)
7
{
8
}
9
10
unsigned
*
11
fn1
(
void
)
12
{
13
int
(*
fpi
) (
int
);
14
int
(*
fpd
) (
double
) =
fpi
;
15
fpi
=
fpd
;
16
char
*
di
;
17
float
*
dp
= &
di
;
18
di
=
dp
;
19
fn2
(
dp
,
di
);
20
return
dp
;
21
}