OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
/
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
special
/
weak-1.c
1
/* { dg-do run } */
2
/* { dg-require-weak "" } */
3
/* { dg-additional-sources weak-1a.c } */
4
5
#include <stdlib.h>
6
7
int foo(void) __attribute__((weak));
8
9
int foo(void) {
10
return 0;
11
}
12
13
int main(void) {
14
15
if (foo())
16
exit(0);
17
else
18
abort();
19
}