xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/cxx-traits.h (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1f4a2713aSLionel Sambuc // Header for PCH test cxx-traits.cpp
2f4a2713aSLionel Sambuc 
3*0a6a1f1dSLionel Sambuc namespace n {
4*0a6a1f1dSLionel Sambuc 
5f4a2713aSLionel Sambuc template<typename _Tp>
6*0a6a1f1dSLionel Sambuc struct __is_pod { // expected-warning {{keyword '__is_pod' will be made available as an identifier for the remainder of the translation unit}}
7f4a2713aSLionel Sambuc   enum { __value };
8f4a2713aSLionel Sambuc };
9f4a2713aSLionel Sambuc 
10f4a2713aSLionel Sambuc template<typename _Tp>
11*0a6a1f1dSLionel Sambuc struct __is_empty { // expected-warning {{keyword '__is_empty' will be made available as an identifier for the remainder of the translation unit}}
12f4a2713aSLionel Sambuc   enum { __value };
13f4a2713aSLionel Sambuc };
14f4a2713aSLionel Sambuc 
15f4a2713aSLionel Sambuc template<typename T, typename ...Args>
16f4a2713aSLionel Sambuc struct is_trivially_constructible {
17f4a2713aSLionel Sambuc   static const bool value = __is_trivially_constructible(T, Args...);
18f4a2713aSLionel Sambuc };
19*0a6a1f1dSLionel Sambuc 
20*0a6a1f1dSLionel Sambuc struct __is_abstract {};  // expected-warning {{made available}}
21*0a6a1f1dSLionel Sambuc struct __is_arithmetic {};  // expected-warning {{made available}}
22*0a6a1f1dSLionel Sambuc struct __is_array {};  // expected-warning {{made available}}
23*0a6a1f1dSLionel Sambuc struct __is_base_of {};  // expected-warning {{made available}}
24*0a6a1f1dSLionel Sambuc struct __is_class {};  // expected-warning {{made available}}
25*0a6a1f1dSLionel Sambuc struct __is_complete_type {};  // expected-warning {{made available}}
26*0a6a1f1dSLionel Sambuc struct __is_compound {};  // expected-warning {{made available}}
27*0a6a1f1dSLionel Sambuc struct __is_const {};  // expected-warning {{made available}}
28*0a6a1f1dSLionel Sambuc struct __is_constructible {};  // expected-warning {{made available}}
29*0a6a1f1dSLionel Sambuc struct __is_convertible {};  // expected-warning {{made available}}
30*0a6a1f1dSLionel Sambuc struct __is_convertible_to {};  // expected-warning {{made available}}
31*0a6a1f1dSLionel Sambuc struct __is_destructible {};  // expected-warning {{made available}}
32*0a6a1f1dSLionel Sambuc struct __is_enum {};  // expected-warning {{made available}}
33*0a6a1f1dSLionel Sambuc struct __is_floating_point {};  // expected-warning {{made available}}
34*0a6a1f1dSLionel Sambuc struct __is_final {};  // expected-warning {{made available}}
35*0a6a1f1dSLionel Sambuc struct __is_function {};  // expected-warning {{made available}}
36*0a6a1f1dSLionel Sambuc struct __is_fundamental {};  // expected-warning {{made available}}
37*0a6a1f1dSLionel Sambuc struct __is_integral {};  // expected-warning {{made available}}
38*0a6a1f1dSLionel Sambuc struct __is_interface_class {};  // expected-warning {{made available}}
39*0a6a1f1dSLionel Sambuc struct __is_literal {};  // expected-warning {{made available}}
40*0a6a1f1dSLionel Sambuc struct __is_lvalue_expr {};  // expected-warning {{made available}}
41*0a6a1f1dSLionel Sambuc struct __is_lvalue_reference {};  // expected-warning {{made available}}
42*0a6a1f1dSLionel Sambuc struct __is_member_function_pointer {};  // expected-warning {{made available}}
43*0a6a1f1dSLionel Sambuc struct __is_member_object_pointer {};  // expected-warning {{made available}}
44*0a6a1f1dSLionel Sambuc struct __is_member_pointer {};  // expected-warning {{made available}}
45*0a6a1f1dSLionel Sambuc struct __is_nothrow_assignable {};  // expected-warning {{made available}}
46*0a6a1f1dSLionel Sambuc struct __is_nothrow_constructible {};  // expected-warning {{made available}}
47*0a6a1f1dSLionel Sambuc struct __is_nothrow_destructible {};  // expected-warning {{made available}}
48*0a6a1f1dSLionel Sambuc struct __is_object {};  // expected-warning {{made available}}
49*0a6a1f1dSLionel Sambuc struct __is_pointer {};  // expected-warning {{made available}}
50*0a6a1f1dSLionel Sambuc struct __is_polymorphic {};  // expected-warning {{made available}}
51*0a6a1f1dSLionel Sambuc struct __is_reference {};  // expected-warning {{made available}}
52*0a6a1f1dSLionel Sambuc struct __is_rvalue_expr {};  // expected-warning {{made available}}
53*0a6a1f1dSLionel Sambuc struct __is_rvalue_reference {};  // expected-warning {{made available}}
54*0a6a1f1dSLionel Sambuc struct __is_same {};  // expected-warning {{made available}}
55*0a6a1f1dSLionel Sambuc struct __is_scalar {};  // expected-warning {{made available}}
56*0a6a1f1dSLionel Sambuc struct __is_sealed {};  // expected-warning {{made available}}
57*0a6a1f1dSLionel Sambuc struct __is_signed {};  // expected-warning {{made available}}
58*0a6a1f1dSLionel Sambuc struct __is_standard_layout {};  // expected-warning {{made available}}
59*0a6a1f1dSLionel Sambuc struct __is_trivial {};  // expected-warning {{made available}}
60*0a6a1f1dSLionel Sambuc struct __is_trivially_assignable {};  // expected-warning {{made available}}
61*0a6a1f1dSLionel Sambuc struct __is_trivially_constructible {};  // expected-warning {{made available}}
62*0a6a1f1dSLionel Sambuc struct __is_trivially_copyable {};  // expected-warning {{made available}}
63*0a6a1f1dSLionel Sambuc struct __is_union {};  // expected-warning {{made available}}
64*0a6a1f1dSLionel Sambuc struct __is_unsigned {};  // expected-warning {{made available}}
65*0a6a1f1dSLionel Sambuc struct __is_void {};  // expected-warning {{made available}}
66*0a6a1f1dSLionel Sambuc struct __is_volatile {};  // expected-warning {{made available}}
67*0a6a1f1dSLionel Sambuc 
68*0a6a1f1dSLionel Sambuc 
69*0a6a1f1dSLionel Sambuc }
70