gcc/testsuite/g++.dg/compat/decimal/pass-3_x.C
raw| 1 | typedef float dec32 __attribute__((mode(SD))); |
| 2 | typedef float dec64 __attribute__((mode(DD))); |
| 3 | typedef float dec128 __attribute__((mode(TD))); |
| 4 | |
| 5 | #include "pass_x.h" |
| 6 | |
| 7 | void |
| 8 | pass_3_x (void) |
| 9 | { |
| 10 | DEBUG_INIT |
| 11 | |
| 12 | #define T(NAME) testit##NAME (); |
| 13 | |
| 14 | #ifndef SKIP_DECIMAL32 |
| 15 | T(d32) |
| 16 | #endif |
| 17 | #ifndef SKIP_DECIMAL64 |
| 18 | T(d64) |
| 19 | #endif |
| 20 | #ifndef SKIP_DECIMAL128 |
| 21 | T(d128) |
| 22 | #endif |
| 23 | |
| 24 | DEBUG_FINI |
| 25 | |
| 26 | if (fails != 0) |
| 27 | abort (); |
| 28 | |
| 29 | #undef T |
| 30 | } |