static void test_qemu_strtosz_float(void)

{

    const char *str = "12.345M";

    char *endptr = NULL;

    int64_t res;



    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, 12.345 * M_BYTE);

    g_assert(endptr == str + 7);

}

static void test_qemu_strtosz_float(void)

{

    const char *str = "12.345M";

    char *endptr = NULL;

    int64_t res;



    res = qemu_strtosz(str, &endptr);

    g_assert_cmpint(res, ==, 12.345 * M_BYTE);

    g_assert(endptr == str + 7);

}

static void FUNC_0(void)

{

    const char *VAR_0 = "12.345M";

    char *VAR_1 = NULL;

    int64_t res;



    res = qemu_strtosz(VAR_0, &VAR_1);

    g_assert_cmpint(res, ==, 12.345 * M_BYTE);

    g_assert(VAR_1 == VAR_0 + 7);

}

static void FUNC_0(void)
{ const char *VAR_0 = "12.345M"; char *VAR_1 = NULL; int64_t res; res = qemu_strtosz(VAR_0, &VAR_1); g_assert_cmpint(res, ==, 12.345 * M_BYTE); g_assert(VAR_1 == VAR_0 + 7); }