]> git.saurik.com Git - apple/objc4.git/blobdiff - test/unload3.m
objc4-437.tar.gz
[apple/objc4.git] / test / unload3.m
diff --git a/test/unload3.m b/test/unload3.m
new file mode 100644 (file)
index 0000000..9f83a9b
--- /dev/null
@@ -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