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
2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
Wpointer-to-int-cast-1.c
blob
ff011c75d4af4e9fc5c5d13f63df432edae0cb86
1
/* Test -Wpointer-to-int-cast - on by default. */
2
/* Origin: Joseph Myers <joseph@codesourcery.com> */
3
/* { dg-do compile } */
4
/* { dg-options "" } */
5
6
void
*
p
;
7
8
char
9
f
(
void
)
10
{
11
return
(
char
)
p
;
/* { dg-warning "cast from pointer to integer of different size" } */
12
}