Searched refs:underlying_type (Results 1 - 18 of 18) sorted by relevance

/haiku-buildtools/gcc/libstdc++-v3/testsuite/20_util/underlying_type/requirements/
H A Dexplicit_instantiation.cc34 template struct underlying_type<test_type1>;
35 template struct underlying_type<test_type2>;
36 template struct underlying_type<test_type3>;
37 template struct underlying_type<test_type4>;
38 template struct underlying_type<test_type5>;
39 template struct underlying_type<test_type6>;
H A Dtypedefs-1.cc36 typedef std::underlying_type<test_type1>::type type1;
37 typedef std::underlying_type<test_type2>::type type2;
38 typedef std::underlying_type<test_type3>::type type3;
39 typedef std::underlying_type<test_type4>::type type4;
40 typedef std::underlying_type<test_type5>::type type5;
41 typedef std::underlying_type<test_type6>::type type6;
H A Dtypedefs-2.cc37 static_assert(is_same<underlying_type<E1>::type, unsigned>::value, "Error");
38 static_assert(is_same<underlying_type<E2>::type, char>::value, "Error");
39 static_assert(is_same<underlying_type<E3>::type, int>::value, "Error");
40 static_assert(is_same<underlying_type<E4>::type,
42 static_assert(is_same<underlying_type<E5>::type, int>::value, "Error");
43 static_assert(is_same<underlying_type<E6>::type, long>::value, "Error");
H A Dalias_decl.cc30 static_assert( is_same<typename underlying_type<E>::type,
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/ext/
H A Dunderlying_type1.C7 struct underlying_type struct
15 underlying_type<int>::type i5;
16 underlying_type<A>::type i6; // { dg-error "not declared|template|expected" }
17 underlying_type<B>::type i7;
18 underlying_type<U>::type i8;
H A Dunderlying_type4.C16 struct underlying_type struct
19 int test1[is_same<underlying_type<E1>::type, UTE1>::value ? 1 : -1];
20 int test2[is_same<underlying_type<E2>::type, UTE2>::value ? 1 : -1];
21 int test3[is_same<underlying_type<E3>::type, UTE3>::value ? 1 : -1];
23 int test4[is_integral<underlying_type<E1>::type>::value ? 1 : -1];
24 int test5[is_integral<underlying_type<E2>::type>::value ? 1 : -1];
25 int test6[is_integral<underlying_type<E3>::type>::value ? 1 : -1];
H A Dunderlying_type5.C26 struct underlying_type struct in class:E4::E5::E6
29 static_assert(is_same<underlying_type<E1>::type, UTE1>::value, "Error");
30 static_assert(is_same<underlying_type<E2>::type, UTE2>::value, "Error");
31 static_assert(is_same<underlying_type<E3>::type, UTE3>::value, "Error");
32 static_assert(is_same<underlying_type<E4>::type, UTE4>::value, "Error");
33 static_assert(is_same<underlying_type<E5>::type, UTE5>::value, "Error");
34 static_assert(is_same<underlying_type<E6>::type, UTE6>::value, "Error");
36 static_assert(is_same<underlying_type<E1>::type, unsigned>::value, "Error");
37 static_assert(is_same<underlying_type<E2>::type, char>::value, "Error");
38 static_assert(is_same<underlying_type<E
[all...]
H A Dunderlying_type8.C19 struct underlying_type;
23 test(T, U, typename underlying_type<T>::type);
26 struct underlying_type struct in class:E3::E4::E5::E6
31 test(T, U, typename underlying_type<T>::type) argument
33 static_assert(is_same<typename underlying_type<T>::type, U>::value,
H A Dunderlying_type10.C13 struct underlying_type struct in class:E3::E4::E5::E6
18 test(T t, typename underlying_type<T>::type v)
/haiku-buildtools/gcc/gcc/testsuite/g++.dg/cpp0x/
H A Dalias-decl-51.C9 using underlying_type = type_is<__underlying_type(T)>;
/haiku-buildtools/gcc/libstdc++-v3/include/experimental/
H A Dfs_fwd.h98 using __utype = typename std::underlying_type<copy_options>::type;
106 using __utype = typename std::underlying_type<copy_options>::type;
114 using __utype = typename std::underlying_type<copy_options>::type;
122 using __utype = typename std::underlying_type<copy_options>::type;
168 using __utype = typename std::underlying_type<perms>::type;
176 using __utype = typename std::underlying_type<perms>::type;
184 using __utype = typename std::underlying_type<perms>::type;
192 using __utype = typename std::underlying_type<perms>::type;
216 using __utype = typename std::underlying_type<directory_options>::type;
224 using __utype = typename std::underlying_type<directory_option
[all...]
/haiku-buildtools/gcc/gcc/cp/
H A Dcp-lang.c241 tree underlying_type = ENUM_UNDERLYING_TYPE (type); local
244 underlying_type
245 = c_common_type_for_mode (TYPE_MODE (underlying_type),
246 TYPE_UNSIGNED (underlying_type));
248 return underlying_type;
H A Ddecl.c12771 start_enum (tree name, tree enumtype, tree underlying_type,
12783 if (!underlying_type && scoped_enum_p)
12784 underlying_type = integer_type_node;
12786 if (underlying_type)
12787 underlying_type = cv_unqualified (underlying_type);
12809 else if (ENUM_FIXED_UNDERLYING_TYPE_P (enumtype) != !! underlying_type)
12817 else if (underlying_type && ENUM_UNDERLYING_TYPE (enumtype)
12818 && !dependent_type_p (underlying_type)
12820 && !same_type_p (underlying_type,
12752 start_enum(tree name, tree enumtype, tree underlying_type, bool scoped_enum_p, bool *is_new) argument
12893 tree underlying_type; local
[all...]
H A Dsemantics.c3704 tree underlying_type; local
3708 underlying_type = cxx_make_type (UNDERLYING_TYPE);
3709 UNDERLYING_TYPE_TYPE (underlying_type) = type;
3710 SET_TYPE_STRUCTURAL_EQUALITY (underlying_type);
3712 return underlying_type;
3723 underlying_type = ENUM_UNDERLYING_TYPE (type);
3729 underlying_type
3730 = c_common_type_for_mode (TYPE_MODE (underlying_type),
3731 TYPE_UNSIGNED (underlying_type));
3733 return underlying_type;
[all...]
H A Ddecl2.c2366 tree underlying_type = TREE_TYPE (DECL_NAME (decl));
2367 int underlying_vis = type_visibility (underlying_type);
2369 || (CLASS_TYPE_P (underlying_type)
2370 && CLASSTYPE_VISIBILITY_SPECIFIED (underlying_type)))
2361 tree underlying_type = TREE_TYPE (DECL_NAME (decl)); local
H A Dparser.c15744 tree underlying_type = NULL_TREE;
15867 underlying_type = grokdeclarator (NULL, &type_specifiers, TYPENAME,
15869 if (underlying_type == error_mark_node
15870 || check_for_bare_parameter_packs (underlying_type))
15871 underlying_type = NULL_TREE;
15878 if (cxx_dialect < cxx11 || (!scoped_enum_p && !underlying_type))
15888 if ((scoped_enum_p || underlying_type)
15924 type = start_enum (identifier, type, underlying_type,
15742 tree underlying_type = NULL_TREE; local
/haiku-buildtools/gcc/gcc/jit/
H A Dlibgccjit.c1679 gcc::jit::recording::type *underlying_type = local
1683 == underlying_type->unqualified ()),
1687 underlying_type->get_debug_string ());
1711 gcc::jit::recording::type *underlying_type = local
1715 == underlying_type->unqualified ()),
1719 underlying_type->get_debug_string ());
1739 gcc::jit::recording::type *underlying_type = local
1745 underlying_type,
1753 == underlying_type->unqualified ()),
1757 underlying_type
1776 gcc::jit::recording::type *underlying_type = local
[all...]
/haiku-buildtools/gcc/gcc/c-family/
H A Dc-ada-spec.c2086 const_tree underlying_type = local
2093 && (!underlying_type
2094 || !TYPE_FIELDS (TREE_TYPE (underlying_type))))
2097 || underlying_type == NULL_TREE
2099 && !TREE_VISITED (underlying_type)
2102 && DECL_SOURCE_FILE (underlying_type)
2105 && DECL_P (underlying_type)
2107 && decl_sloc (underlying_type, true)
2109 && DECL_SOURCE_FILE (underlying_type)

Completed in 489 milliseconds