]> granicus.if.org Git - clang/commitdiff
Add test case for __has_feature(objc_weak_class).
authorTed Kremenek <kremenek@apple.com>
Thu, 29 Apr 2010 17:43:21 +0000 (17:43 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 29 Apr 2010 17:43:21 +0000 (17:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102639 91177308-0d34-0410-b5e6-96231b3b80d8

test/Preprocessor/non_fragile_feature.m

index 552209d4955e1ba549ac8acdbe54a1c02b79f14a..1f67ed3f09bd38e6a0bcad6c60748b96a7485570 100644 (file)
@@ -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