[PATCH] D33049: [libcxx] Support for Objective-C++ tests

Jonathan Roelofs via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 15:17:02 PDT 2017


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





More information about the cfe-commits mailing list