jroelofs added a comment. Would be good to test for the presence/absence of the flag, too:
================ Comment at: test/libcxx/selftest/test.arc.pass.mm:10 +//===----------------------------------------------------------------------===// + +int main() ---------------- ``` #if __has_feature(objc_arc) != 1 #error "arc should be enabled" #endif ``` ================ Comment at: test/libcxx/selftest/test.pass.mm:10 +//===----------------------------------------------------------------------===// + +int main() ---------------- ``` #if __has_feature(objc_arc) == 1 #error "arc should *not* be enabled" #endif ``` https://reviews.llvm.org/D33049 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits