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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
execute
/
20041212-1.c
blob
ea2d0fbd78e9fed18b913e26a545b47c560c2291
1
/* A function pointer compared with a void pointer should not be canonicalized.
2
See PR middle-end/17564. */
3
void
*
f
(
void
)
__attribute__
((
__noinline__
));
4
void
*
5
f
(
void
)
6
{
7
return
f
;
8
}
9
int
10
main
(
void
)
11
{
12
if
(
f
() !=
f
)
13
abort
();
14
exit
(
0
);
15
}