add test cases for hb_unwrap_type
This commit is contained in:
parent
168ceeac49
commit
3c792c2aa5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user