From 3c792c2aa5ccbe5760a7415df24e8bf04edf7914 Mon Sep 17 00:00:00 2001 From: ariza Date: Mon, 17 Feb 2020 07:18:08 -0800 Subject: [PATCH] add test cases for hb_unwrap_type --- src/test-meta.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/test-meta.cc b/src/test-meta.cc index 0b6e02c26..9436b9038 100644 --- a/src/test-meta.cc +++ b/src/test-meta.cc @@ -29,6 +29,8 @@ #include +template 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>>)), ""); + static_assert (hb_is_unsigned (hb_unwrap_type (U>>>)), ""); + /* TODO Add more meaningful tests. */ return 0;