summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/non_fragile_feature.m
blob: 1f67ed3f09bd38e6a0bcad6c60748b96a7485570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fobjc-nonfragile-abi %s
#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

#if !__has_feature(objc_weak_class)
#error objc_weak_class should be enabled with nonfragile abi
#endif
OpenPOWER on IntegriCloud