repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sync usage with man page.
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
weak
/
weak-6.c
blob
711003ccd03756064ebcba6130ea8d639494fdc5
1
/* { dg-do compile } */
2
/* { dg-require-weak "" } */
3
4
extern
void
*
foo
(
void
);
5
void
*
foo
(
void
) {
return
(
void
*)
foo
; }
/* { dg-error "precede" } */
6
/* { dg-error "function pointer" "pointer conversion" { target *-*-* } 5 } */
7
#pragma weak foo