John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s |
David Chisnall | cbf30b7 | 2009-08-31 16:53:06 +0000 | [diff] [blame] | 2 | #ifndef __has_feature |
3 | #error Should have __has_feature | ||||
4 | #endif | ||||
5 | |||||
6 | #if !__has_feature(objc_nonfragile_abi) | ||||
7 | #error Non-fragile ABI used for compilation but feature macro not set. | ||||
8 | #endif | ||||
Ted Kremenek | 6b15f8e | 2010-04-29 17:43:21 +0000 | [diff] [blame] | 9 | |
10 | #if !__has_feature(objc_weak_class) | ||||
11 | #error objc_weak_class should be enabled with nonfragile abi | ||||
12 | #endif |