1 /* { dg-do compile } */
2 /* { dg-options "" } */
3 /* Test __has_{feature,extension} for C language features. */
5 #if !__has_extension (c_alignas) || !__has_extension (c_alignof)
9 #if !__has_extension (c_atomic) || !__has_extension (c_generic_selections)
13 #if !__has_extension (c_static_assert) || !__has_extension (c_thread_local)
17 #if !__has_extension (cxx_binary_literals)
21 #if __STDC_VERSION__ >= 201112L
22 /* Have C11 features. */
23 #if !__has_feature (c_alignas) || !__has_feature (c_alignof)
27 #if !__has_feature (c_atomic) || !__has_feature (c_generic_selections)
31 #if !__has_feature (c_static_assert) || !__has_feature (c_thread_local)
36 /* Don't have C11 features. */
37 #if __has_feature (c_alignas) || __has_feature (c_alignof)
41 #if __has_feature (c_atomic) || __has_feature (c_generic_selections)
45 #if __has_feature (c_static_assert) || __has_feature (c_thread_local)
51 #if __STDC_VERSION__ >= 202000L
52 /* Have C2x features. */
53 #if !__has_feature (cxx_binary_literals)
58 /* Don't have C2x features. */
59 #if __has_feature (cxx_binary_literals)