ldbl128_15_arbitrary_mul.c (356B)
1 int test_main(void) { 2 if (__LDBL_MANT_DIG__ != 113) return 0; 3 4 long double a = 7.0L * 9.0L; 5 long double b = 13.0L * 11.0L; 6 long double c = 1.5L * 2.5L; 7 8 if ((int)a != 63) return 11; 9 if ((int)b != 143) return 12; 10 if ((int)(a + b) != 206) return 13; 11 if ((int)c != 3) return 14; 12 if ((int)((c - 3.0L) * 4.0L) != 3) return 15; 13 14 return 71; 15 }