static void test_qemu_strtoul_full_negative(void)

{

    const char *str = " \t -321";

    unsigned long res = 999;

    int err;



    err = qemu_strtoul(str, NULL, 0, &res);

    g_assert_cmpint(err, ==, 0);

    g_assert_cmpint(res, ==, -321ul);

}

static void test_qemu_strtoul_full_negative(void)

{

    const char *str = " \t -321";

    unsigned long res = 999;

    int err;



    err = qemu_strtoul(str, NULL, 0, &res);

    g_assert_cmpint(err, ==, 0);

    g_assert_cmpint(res, ==, -321ul);

}

static void FUNC_0(void)

{

    const char *VAR_0 = " \t -321";

    unsigned long VAR_1 = 999;

    int VAR_2;



    VAR_2 = qemu_strtoul(VAR_0, NULL, 0, &VAR_1);

    g_assert_cmpint(VAR_2, ==, 0);

    g_assert_cmpint(VAR_1, ==, -321ul);

}

static void FUNC_0(void)
{ const char *VAR_0 = " \t -321"; unsigned long VAR_1 = 999; int VAR_2; VAR_2 = qemu_strtoul(VAR_0, NULL, 0, &VAR_1); g_assert_cmpint(VAR_2, ==, 0); g_assert_cmpint(VAR_1, ==, -321ul); }