]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/weak_import-undefined/weak.c
ld64-224.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / weak_import-undefined / weak.c
CommitLineData
ebf6f434
A
1#include <stdio.h>
2
3char *myweakfunc(void) __attribute__((weak)) ;
4
5int main(int argc, char **argv)
6{
7 if (myweakfunc)
8 printf ("found myweakfunc %s\n", myweakfunc());
9 else
10 printf("Weak func not found\n");
11 return 0;
12}
13