]> git.saurik.com Git - apple/objc4.git/blobdiff - test/unload4.m
objc4-437.tar.gz
[apple/objc4.git] / test / unload4.m
diff --git a/test/unload4.m b/test/unload4.m
new file mode 100644 (file)
index 0000000..d3361b1
--- /dev/null
@@ -0,0 +1,8 @@
+// unload4: contains some objc metadata other than imageinfo
+// libobjc must keep it open
+
+#if __OBJC2__
+int fake2 __attribute__((section("__DATA,__objc_foo"))) = 0;
+#else
+int fake2 __attribute__((section("__OBJC,__foo"))) = 0;
+#endif