提交 12017db0 编写于 作者: B Behdad Esfahbod

Move test code around

上级 27377a7e
......@@ -28,6 +28,12 @@
#include "hb-algs.hh"
static char *
test_func (int a, char **b)
{
return b ? b[a] : nullptr;
}
int
main (int argc, char **argv)
{
......@@ -46,5 +52,7 @@ main (int argc, char **argv)
q.second = 4;
assert (i == 4);
hb_invoke (test_func, 0, nullptr);
return 0;
}
......@@ -99,12 +99,6 @@ test_iterable (const Iterable &lst = Null(Iterable))
test_iterator (lst.iter ());
}
static char *
test_func (int a, char **b)
{
return b[a];
}
int
main (int argc, char **argv)
{
......@@ -203,8 +197,5 @@ main (int argc, char **argv)
long vl;
s >> vl;
if (0)
hb_invoke (test_func, 0, nullptr);
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册