10 { 0x0.FFFFp+0L, { "0X1P+0", "0X2P-1", "0X4P-2", "0X8P-3" } },
11 { 0x0.FFFFp+1L, { "0X1P+1", "0X2P+0", "0X4P-1", "0X8P-2" } },
12 { 0x0.FFFFp+2L, { "0X1P+2", "0X2P+1", "0X4P+0", "0X8P-1" } },
13 { 0x0.FFFFp+3L, { "0X1P+3", "0X2P+2", "0X4P+1", "0X8P+0" } }
22 for (size_t i = 0; i < sizeof (tests) / sizeof (tests[0]); ++i)
24 snprintf (buf, sizeof (buf), "%.0LA", tests[i].val);
27 for (j = 0; j < 4; ++j)
28 if (strcmp (buf, tests[i].str[j]) == 0)
33 printf ("%zd: got \"%s\", expected \"%s\" or equivalent\n",
34 i, buf, tests[i].str[0]);
42 #define TEST_FUNCTION do_test ()
43 #include "../test-skeleton.c"