1 // RUN: %clang_cc1 -E -std=c1x %s -o - | FileCheck --check-prefix=CHECK-1X %s 2 // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-1X %s 3 4 #if __has_feature(c_atomic) 5 int has_atomic(); 6 #else 7 int no_atomic(); 8 #endif 9 10 // CHECK-1X: has_atomic 11 // CHECK-NO-1X: no_atomic 12 13 #if __has_feature(c_static_assert) 14 int has_static_assert(); 15 #else 16 int no_static_assert(); 17 #endif 18 19 // CHECK-1X: has_static_assert 20 // CHECK-NO-1X: no_static_assert 21 22 #if __has_feature(c_generic_selections) 23 int has_generic_selections(); 24 #else 25 int no_generic_selections(); 26 #endif 27 28 // CHECK-1X: has_generic_selections 29 // CHECK-NO-1X: no_generic_selections 30 31 #if __has_feature(c_alignas) 32 int has_alignas(); 33 #else 34 int no_alignas(); 35 #endif 36 37 // CHECK-1X: has_alignas 38 // CHECK-NO-1X: no_alignas 39 40 #if __STDC_VERSION__ > 199901L 41 int is_c1x(); 42 #else 43 int is_not_c1x(); 44 #endif 45 46 // CHECK-1X: is_c1x 47 // CHECK-NO-1X: is_not_c1x 48