summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/non_fragile_feature1.m
blob: 79cc488a0b6eab333d35a042d91fa6c00c89d8e4 (about) (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -triple i386-unknown-unknown -fobjc-fragile-abi %s
#ifndef __has_feature
#error Should have __has_feature
#endif

#if __has_feature(objc_nonfragile_abi)
#error Non-fragile ABI not used for compilation but feature macro set.
#endif