1 // RUN: clang-cc %s --triple=i686-apple-darwin9 &&
2 // RUN: clang-cc %s -E --triple=i686-apple-darwin9
4 #error Should have __has_feature
8 #if __has_feature(something_we_dont_have)
12 #if !__has_builtin(__builtin_huge_val) || \
13 !__has_builtin(__builtin_shufflevector) || \
14 !__has_builtin(__builtin_trap) || \
15 !__has_feature(attribute_analyzer_noreturn) || \
16 !__has_feature(attribute_overloadable)
17 #error Clang should have these
20 #if __has_builtin(__builtin_insanity)
21 #error Clang should not have this
26 // Make sure we have x86 builtins only (forced with target triple).
28 #if !__has_builtin(__builtin_ia32_emms) || \
29 __has_builtin(__builtin_altivec_abs_v4sf)
30 #error Broken handling of target-specific builtins