[cfe-commits] r102639 - /cfe/trunk/test/Preprocessor/non_fragile_feature.m

Ted Kremenek kremenek at apple.com
Thu Apr 29 10:43:21 PDT 2010


Author: kremenek
Date: Thu Apr 29 12:43:21 2010
New Revision: 102639

URL: http://llvm.org/viewvc/llvm-project?rev=102639&view=rev
Log:
Add test case for __has_feature(objc_weak_class).

Modified:
    cfe/trunk/test/Preprocessor/non_fragile_feature.m

Modified: cfe/trunk/test/Preprocessor/non_fragile_feature.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/non_fragile_feature.m?rev=102639&r1=102638&r2=102639&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/non_fragile_feature.m (original)
+++ cfe/trunk/test/Preprocessor/non_fragile_feature.m Thu Apr 29 12:43:21 2010
@@ -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





More information about the cfe-commits mailing list