2 /* { dg-options "-std=gnu99 -O" } */
4 /* DFP TR 24732 == WG14 / N1176, N1312 */
5 /* Based on a test from Fred Tydeman. */
7 extern void abort (void);
12 #define FAILURE(MSG) { printf ("line %d: %s\n", __LINE__, MSG); failures++; }
14 #define FAILURE(MSG) failures++;
17 /* Test runtime computations. */
22 volatile _Decimal32 d
;
25 FAILURE ("0.0DF should be zero")
31 volatile _Decimal64 d
;
34 FAILURE ("0.0DD should be zero")
40 volatile _Decimal128 d
;
43 FAILURE ("0.0DL should be zero")
50 FAILURE ("0.0DF should be zero")
57 FAILURE ("0.0DD should be zero")
64 FAILURE ("0.0DL should be zero")