[test] Fix nullptr_t scope issue

This commit is contained in:
Behdad Esfahbod 2021-11-19 12:04:08 -07:00
parent 5157cac0e2
commit e456922a76
1 changed files with 3 additions and 3 deletions

View File

@ -100,9 +100,9 @@ main (int argc, char **argv)
/* Test class key / value types. */ /* Test class key / value types. */
{ {
hb_hashmap_t<hb_bytes_t, int, nullptr_t, int, nullptr, 0> m1; hb_hashmap_t<hb_bytes_t, int, std::nullptr_t, int, nullptr, 0> m1;
hb_hashmap_t<int, hb_bytes_t, int, nullptr_t, 0, nullptr> m2; hb_hashmap_t<int, hb_bytes_t, int, std::nullptr_t, 0, nullptr> m2;
hb_hashmap_t<hb_bytes_t, hb_bytes_t, nullptr_t, nullptr_t, nullptr, nullptr> m3; hb_hashmap_t<hb_bytes_t, hb_bytes_t, std::nullptr_t, std::nullptr_t, nullptr, nullptr> m3;
assert (m1.get_population () == 0); assert (m1.get_population () == 0);
assert (m2.get_population () == 0); assert (m2.get_population () == 0);
assert (m3.get_population () == 0); assert (m3.get_population () == 0);