aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-18 21:18:53 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-18 21:18:53 +0000
commiteb2ac8b349e181bdc71bfd64980c019be3180d76 (patch)
tree3878a390c801901c35965891a194c11476c0e7fc /test
parente0a22d06888c13989b3f72db319f1d498bf69153 (diff)
Add a __has_feature check for arc_cf_code_audited.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaObjC/arc-cf.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/SemaObjC/arc-cf.m b/test/SemaObjC/arc-cf.m
index b9a44d9e68..e7dcc22d56 100644
--- a/test/SemaObjC/arc-cf.m
+++ b/test/SemaObjC/arc-cf.m
@@ -1,5 +1,9 @@
// RUN: %clang_cc1 -fsyntax-only -fobjc-arc -verify %s
+#if __has_feature(arc_cf_code_audited)
+char _global[-1]; // expected-error {{declared as an array with a negative size}}
+#endif
+
typedef const void *CFTypeRef;
typedef const struct __CFString *CFStringRef;