- mpfr_t y;
- int inex;
-
- mpfr_init2 (y, 2);
- mpc_init2 (z, 2);
- mpc_set_si_si (z, 0, -1, MPC_RNDNN);
- mpfr_neg (mpc_realref (z), mpc_realref (z), GMP_RNDN);
- mpc_div_2ui (z, z, 4, MPC_RNDNN);
- mpfr_set_ui (y, 512, GMP_RNDN);
- inex = mpc_pow_fr (z, z, y, MPC_RNDNN);
- if (MPC_INEX_RE(inex) != 0 || MPC_INEX_IM(inex) != 0 ||
- mpfr_cmp_ui_2exp (mpc_realref(z), 1, -2048) != 0 ||
- mpfr_cmp_ui (mpc_imagref(z), 0) != 0 || mpfr_signbit (mpc_imagref(z)) == 0)
+ mpfr_t f;
+
+ test_start ();
+
+ mpc_init2 (z, 5);
+ mpfr_init2 (f, 3);
+ mpc_set_ui_ui (z, 3, 2, MPC_RNDNN);
+ mpfr_set_ui (f, 3, GMP_RNDN);
+ mpc_pow_fr (z, z, f, MPC_RNDNN);
+ if (mpc_cmp_si_si (z, -9, 46) != 0)