X-Git-Url: https://git.saurik.com/apple/objc4.git/blobdiff_plain/7c0e6487d7b67b6bf6c632300ee4b74e8950b051..7af964d1562d70f51a8e9aca24215ac3d83d0624:/test/unload3.m diff --git a/test/unload3.m b/test/unload3.m new file mode 100644 index 0000000..9f83a9b --- /dev/null +++ b/test/unload3.m @@ -0,0 +1,8 @@ +// unload3: contains imageinfo but no other objc metadata +// libobjc must not keep it open + +#if __OBJC2__ +int fake __attribute__((section("__DATA,__objc_imageinfo"))) = 0; +#else +int fake __attribute__((section("__OBJC,__image_info"))) = 0; +#endif