add test cases for hb_unwrap_type

This commit is contained in:
ariza 2020-02-17 07:18:08 -08:00 committed by Behdad Esfahbod
parent 168ceeac49
commit 3c792c2aa5
1 changed files with 5 additions and 0 deletions

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;