summaryrefslogtreecommitdiff
path: root/deps/gyp/test/mac/objc-gc/main.m
diff options
context:
space:
mode:
Diffstat (limited to 'deps/gyp/test/mac/objc-gc/main.m')
-rw-r--r--deps/gyp/test/mac/objc-gc/main.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/deps/gyp/test/mac/objc-gc/main.m b/deps/gyp/test/mac/objc-gc/main.m
new file mode 100644
index 0000000000..1a87f8e70f
--- /dev/null
+++ b/deps/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;
+}