llvm-project/clang/test/Preprocessor/non_fragile_feature.m

9 lines
223 B
Objective-C

// 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