blob: 1f67ed3f09bd38e6a0bcad6c60748b96a7485570 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fobjc-nonfragile-abi %s
David Chisnallcbf30b72009-08-31 16:53:06 +00002#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 Kremenek6b15f8e2010-04-29 17:43:21 +00009
10#if !__has_feature(objc_weak_class)
11#error objc_weak_class should be enabled with nonfragile abi
12#endif