1 // { dg-do compile { target c++11_only } }
5 #ifndef __cpp_binary_literals
6 # error "__cpp_binary_literals" // { dg-error "error" }
9 #ifndef __cpp_init_captures
10 # error "__cpp_init_captures" // { dg-error "error" }
13 #ifndef __cpp_generic_lambdas
14 # error "__cpp_generic_lambdas" // { dg-error "error" }
17 #ifndef __cpp_decltype_auto
18 # error "__cpp_decltype_auto" // { dg-error "error" }
21 #ifndef __cpp_return_type_deduction
22 # error "__cpp_return_type_deduction" // { dg-error "error" }
25 #ifndef __cpp_aggregate_nsdmi
26 # error "__cpp_aggregate_nsdmi" // { dg-error "error" }
29 #ifndef __cpp_variable_templates
30 # error "__cpp_variable_templates" // { dg-error "error" }
33 #ifndef __cpp_digit_separators
34 # error "__cpp_digit_separators" // { dg-error "error" }
37 #ifndef __cpp_sized_deallocation
38 # error "__cpp_sized_deallocation" // { dg-error "error" }
43 #ifndef __cpp_namespace_attributes
44 # error "__cpp_namespace_attributes" // { dg-error "error" }
47 #ifndef __cpp_nested_namespace_definitions
48 # error "__cpp_nested_namespace_definitions" // { dg-error "error" }
54 #ifndef __cpp_runtime_arrays
55 # error "__cpp_runtime_arrays" // { dg-error "error" }
60 // Attribute [[deprecated]] is allowed in C++11 as an extension.
61 //#ifdef __has_cpp_attribute
62 //# if __has_cpp_attribute(deprecated) == 201309
63 //# error "__has_cpp_attribute(deprecated)" // { }
66 //# error "__has_cpp_attribute"