Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Preprocessor / non_fragile_feature.m
blobcf64df2bf880fd5918e18265be0ce6868643d531
1 // RUN: %clang_cc1 %s
2 #ifndef __has_feature
3 #error Should have __has_feature
4 #endif
6 #if !__has_feature(objc_nonfragile_abi)
7 #error Non-fragile ABI used for compilation but feature macro not set.
8 #endif
10 #if !__has_feature(objc_weak_class)
11 #error objc_weak_class should be enabled with nonfragile abi
12 #endif