aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/non_fragile_feature.m
blob: cb6bc012f1c271c11d4d2c27b3802c98c139a1e3 (plain)
1
2
3
4
5
6
7
8
// RUN: clang-cc -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