1 // { dg-do compile { target c++11_only } }
2 // { dg-options "-pedantic-errors" }
6 #ifndef __cpp_binary_literals
7 # error "__cpp_binary_literals" // { dg-error "error" }
10 #ifndef __cpp_init_captures
11 # error "__cpp_init_captures" // { dg-error "error" }
14 #ifndef __cpp_generic_lambdas
15 # error "__cpp_generic_lambdas" // { dg-error "error" }
18 #ifndef __cpp_decltype_auto
19 # error "__cpp_decltype_auto" // { dg-error "error" }
22 #ifndef __cpp_return_type_deduction
23 # error "__cpp_return_type_deduction" // { dg-error "error" }
26 #ifndef __cpp_variable_templates
27 # error "__cpp_variable_templates" // { dg-error "error" }
30 #ifndef __cpp_digit_separators
31 # error "__cpp_digit_separators" // { dg-error "error" }
34 #ifndef __cpp_aggregate_nsdmi
35 # error "__cpp_aggregate_nsdmi" // { dg-error "error" }
40 #ifndef __cpp_runtime_arrays
41 # error "__cpp_runtime_arrays" // { dg-error "error" }
46 // Attribute [[deprecated]] is allowed in C++11 as an extension (with pedwarn).
47 //#ifdef __has_cpp_attribute
48 //# if __has_cpp_attribute(deprecated) == 201309
49 //# error "__has_cpp_attribute(deprecated)" // { }
52 //# error "__has_cpp_attribute"