summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/mac/objc-gc/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/mac/objc-gc/main.m')
-rw-r--r--third_party/python/gyp/test/mac/objc-gc/main.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/mac/objc-gc/main.m b/third_party/python/gyp/test/mac/objc-gc/main.m
new file mode 100644
index 0000000000..1a87f8e70f
--- /dev/null
+++ b/third_party/python/gyp/test/mac/objc-gc/main.m
@@ -0,0 +1,6 @@
+#import <Foundation/Foundation.h>
+
+int main() {
+ printf("gc on: %d\n", [NSGarbageCollector defaultCollector] != NULL);
+ return 0;
+}