summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/non_fragile_feature.m
blob: 552209d4955e1ba549ac8acdbe54a1c02b79f14a (plain)
1
2
3
4
5
6
7
8
// 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
OpenPOWER on IntegriCloud