summaryrefslogtreecommitdiff
path: root/test/Lexer/has_feature_objc_arc.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/Lexer/has_feature_objc_arc.m')
-rw-r--r--test/Lexer/has_feature_objc_arc.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Lexer/has_feature_objc_arc.m b/test/Lexer/has_feature_objc_arc.m
index 279b91af39cd7..d5c8493daa7b2 100644
--- a/test/Lexer/has_feature_objc_arc.m
+++ b/test/Lexer/has_feature_objc_arc.m
@@ -13,8 +13,16 @@ void has_objc_arc_weak_feature();
void no_objc_arc_weak_feature();
#endif
+#if __has_feature(objc_arc_fields)
+void has_objc_arc_fields();
+#else
+void no_objc_arc_fields();
+#endif
+
// CHECK-ARC: void has_objc_arc_feature();
// CHECK-ARC: void has_objc_arc_weak_feature();
+// CHECK-ARC: void has_objc_arc_fields();
// CHECK-ARCLITE: void has_objc_arc_feature();
// CHECK-ARCLITE: void no_objc_arc_weak_feature();
+// CHECK-ARCLITE: void has_objc_arc_fields();