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
/
wkali-1.c
blob
9d97b8e1288295687c4f0b22d229df747c41b4db
1
/* { dg-do link } */
2
/* { dg-require-weak "" } */
3
/* { dg-require-alias "" } */
4
5
#include <stdlib.h>
6
7
extern
int
foo
(
void
)
__attribute__
((
weak
,
alias
(
"bar"
)));
8
9
int
bar
(
void
) {
10
return
1
;
11
}
12
13
int
main
(
void
) {
14
15
if
(
foo
())
16
exit
(
0
);
17
else
18
abort
();
19
}