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
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.dg
/
special
/
weak-1.c
blob
fd45acdc7265ffa08d564da523badd4a585e935c
1
/* { dg-do run { xfail { hppa*-*-hpux* && { ! hppa*64*-*-* } } } } */
2
/* { dg-require-weak "" } */
3
/* { dg-additional-sources weak-1a.c } */
4
/* See PR target/23387 for hppa xfail details. */
5
6
#include <stdlib.h>
7
8
int
foo
(
void
)
__attribute__
((
weak
));
9
10
int
foo
(
void
) {
11
return
0
;
12
}
13
14
int
main
(
void
) {
15
16
if
(
foo
())
17
exit
(
0
);
18
else
19
abort
();
20
}