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
* gcc.dg/20061124-1.c: Add exit() function prototype.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
darwin-weakimport-2.c
blob
1c981722282ca146bbd976481588618f4afa076e
1
/* { dg-do compile { target *-*-darwin* } } */
2
/* { dg-require-weak "" } */
3
4
/* { dg-final { scan-assembler "weak_reference _foo" } } */
5
6
extern
int
foo
__attribute__
((
weak_import
));
7
8
int
main
(
void
)
9
{
10
if
(&
foo
)
11
return
foo
;
12
return
0
;
13
}