X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/07feaf2cb00322d025073eb8ec22189ada5e4180..a645023da60d22e86be13f7b4d97adeff8bc6665:/unit-tests/test-cases/weak_import-local/main.c?ds=sidebyside diff --git a/unit-tests/test-cases/weak_import-local/main.c b/unit-tests/test-cases/weak_import-local/main.c new file mode 100644 index 0000000..ce044ad --- /dev/null +++ b/unit-tests/test-cases/weak_import-local/main.c @@ -0,0 +1,18 @@ +#include + +#include "foo.h" + +void* pf2 = &func2; +int* pd2 = &data2; + +int main (void) +{ + if ( &func2 != NULL ) + func2(); + + if ( &data2 != NULL ) + data2 = 1; + + return 0; +} +