summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/non_fragile_feature.m
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-29 17:43:21 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-29 17:43:21 +0000
commit772810137a41364e15bbbf3afa8a8459b5f1d377 (patch)
tree5f1df318421646ca8e2b14eb01e5fef46b3b873e /clang/test/Preprocessor/non_fragile_feature.m
parent23a2f2ff79d508ddc090c2dad67f23b78a849ea4 (diff)
downloadbcm5719-llvm-772810137a41364e15bbbf3afa8a8459b5f1d377.tar.gz
bcm5719-llvm-772810137a41364e15bbbf3afa8a8459b5f1d377.zip
Add test case for __has_feature(objc_weak_class).
llvm-svn: 102639
Diffstat (limited to 'clang/test/Preprocessor/non_fragile_feature.m')
-rw-r--r--clang/test/Preprocessor/non_fragile_feature.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/non_fragile_feature.m b/clang/test/Preprocessor/non_fragile_feature.m
index 552209d4955..1f67ed3f09b 100644
--- a/clang/test/Preprocessor/non_fragile_feature.m
+++ b/clang/test/Preprocessor/non_fragile_feature.m
@@ -6,3 +6,7 @@
#if !__has_feature(objc_nonfragile_abi)
#error Non-fragile ABI used for compilation but feature macro not set.
#endif
+
+#if !__has_feature(objc_weak_class)
+#error objc_weak_class should be enabled with nonfragile abi
+#endif
OpenPOWER on IntegriCloud