add test cases for hb_unwrap_type

This commit is contained in:
ariza authored and Behdad Esfahbod committed 2020-02-17 21:16:15 +00:00
1 parent 168ceeac49
commit 3c792c2aa5
1 file changed
+5
+5
View File
@@ -29,6 +29,8 @@
#include <type_traits>
template <typename T> struct U { typedef T type; };
int
main (int argc, char **argv)
{
@@ -122,6 +124,9 @@ main (int argc, char **argv)
static_assert (hb_is_trivial (X), "");
static_assert (hb_is_trivial (Y), "");
static_assert (hb_is_signed (hb_unwrap_type (U<U<U<int>>>)), "");
static_assert (hb_is_unsigned (hb_unwrap_type (U<U<U<U<unsigned>>>>)), "");
/* TODO Add more meaningful tests. */
return 0;