]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/weak_import-local/main.c
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / weak_import-local / main.c
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 (file)
index 0000000..ce044ad
--- /dev/null
@@ -0,0 +1,18 @@
+#include <stddef.h>
+
+#include "foo.h"
+
+void* pf2 = &func2;
+int* pd2 = &data2;
+
+int main (void)
+{
+       if ( &func2 != NULL )
+               func2();
+       
+       if ( &data2 != NULL )
+               data2 = 1;
+   
+   return 0;
+}
+