OSDN Git Service

b7fb909716a040cd1067ccb48312c03bdc82e84b
[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 }