diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-04-29 17:43:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-04-29 17:43:21 +0000 |
commit | 6b15f8e9097c9a738cfd0ed9faa1112100ede334 (patch) | |
tree | 3ce829e2ba1df8b2b13debc13096c4d21d32f33d | |
parent | 066cde17439120e1390a719e5f89cd3354e6a6fc (diff) |
Add test case for __has_feature(objc_weak_class).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102639 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Preprocessor/non_fragile_feature.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Preprocessor/non_fragile_feature.m b/test/Preprocessor/non_fragile_feature.m index 552209d495..1f67ed3f09 100644 --- a/test/Preprocessor/non_fragile_feature.m +++ b/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 |