diff options
Diffstat (limited to 'third_party/python/gyp/test/mac/objc-arc/m-file-arc-weak.m')
-rw-r--r-- | third_party/python/gyp/test/mac/objc-arc/m-file-arc-weak.m | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/mac/objc-arc/m-file-arc-weak.m b/third_party/python/gyp/test/mac/objc-arc/m-file-arc-weak.m new file mode 100644 index 0000000000..4ab7c51a82 --- /dev/null +++ b/third_party/python/gyp/test/mac/objc-arc/m-file-arc-weak.m @@ -0,0 +1,9 @@ +#if __has_feature(objc_arc) +#error "ObjC files without CLANG_ENABLE_OBJC_ARC should not be ARC'd!" +#endif + +#if !__has_feature(objc_arc_weak) +#error "With CLANG_ENABLE_OBJC_WEAK, weak references should be enabled." +#endif + +void m_fun() {} |