2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 %s
|
2009-09-01 00:53:06 +08:00
|
|
|
#ifndef __has_feature
|
|
|
|
#error Should have __has_feature
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !__has_feature(objc_nonfragile_abi)
|
|
|
|
#error Non-fragile ABI used for compilation but feature macro not set.
|
|
|
|
#endif
|
2010-04-30 01:43:21 +08:00
|
|
|
|
|
|
|
#if !__has_feature(objc_weak_class)
|
|
|
|
#error objc_weak_class should be enabled with nonfragile abi
|
|
|
|
#endif
|