]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs-3.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / make_unsigned / requirements / typedefs-3.cc
index 07c35bcc5ccae91ec72f60c5f20b3838b49093f5..0d0ced8755fc62d266714ab7e2d7bcf2fe17669a 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-options "-std=gnu++11" }
-// { dg-do compile }
+// { dg-do compile { target c++11 } }
 
-// Copyright (C) 2015 Free Software Foundation, Inc.
+// Copyright (C) 2015-2020 Free Software Foundation, Inc.
 //
 // This file is part of the GNU ISO C++ Library.  This library is free
 // software; you can redistribute it and/or modify it under the
@@ -60,8 +59,21 @@ using I4 = smallest_rank_t<E4>;
 static_assert(is_same<make_unsigned<E4>::type, I4>::value, "");
 static_assert(is_same<make_unsigned<E4 const>::type, I4 const>::value, "");
 
-// PI libstdc++/60333
+// PR libstdc++/60333
 enum E5 : long long { };
 using I5 = smallest_rank_t<E5>;
 static_assert(is_same<make_unsigned<E5>::type, I5>::value, "");
 static_assert(is_same<make_unsigned<E5 const>::type, I5 const>::value, "");
+
+// PR libstdc++/85951
+using I6 = smallest_rank_t<char16_t>;
+static_assert(is_same<make_unsigned<char16_t>::type, I6>::value, "");
+static_assert(is_same<make_unsigned<char16_t const>::type, I6 const>::value, "");
+using I7 = smallest_rank_t<char32_t>;
+static_assert(is_same<make_unsigned<char32_t>::type, I7>::value, "");
+static_assert(is_same<make_unsigned<char32_t const>::type, I7 const>::value, "");
+#ifdef _GLIBCXX_USE_WCHAR_T
+using I8 = smallest_rank_t<wchar_t>;
+static_assert(is_same<make_unsigned<wchar_t>::type, I8>::value, "");
+static_assert(is_same<make_unsigned<wchar_t const>::type, I8 const>::value, "");
+#endif