Any way to catch these?
This commit is contained in:
Behdad Esfahbod 2019-05-10 11:32:59 -07:00
parent 30e4ae6bd1
commit 1d870cce68
1 changed files with 11 additions and 11 deletions

View File

@ -80,19 +80,19 @@ main (int argc, char **argv)
struct Y : X {}; struct Y : X {};
static_assert (hb_is_base_of (void, void)); static_assert (hb_is_base_of (void, void), "");
static_assert (hb_is_base_of (void, int)); static_assert (hb_is_base_of (void, int), "");
static_assert (!hb_is_base_of (int, void)); static_assert (!hb_is_base_of (int, void), "");
static_assert (hb_is_base_of (int, int)); static_assert (hb_is_base_of (int, int), "");
static_assert (hb_is_base_of (const int, int)); static_assert (hb_is_base_of (const int, int), "");
static_assert (hb_is_base_of (int, const int)); static_assert (hb_is_base_of (int, const int), "");
static_assert (hb_is_base_of (X, X)); static_assert (hb_is_base_of (X, X), "");
static_assert (hb_is_base_of (X, Y)); static_assert (hb_is_base_of (X, Y), "");
static_assert (hb_is_base_of (const X, Y)); static_assert (hb_is_base_of (const X, Y), "");
static_assert (hb_is_base_of (X, const Y)); static_assert (hb_is_base_of (X, const Y), "");
static_assert (!hb_is_base_of (Y, X)); static_assert (!hb_is_base_of (Y, X), "");
return 0; return 0;
} }