-/* { dg-options "-std=gnu99 -O0" } */
+/* { dg-options "-O0" } */
/* N1150 5.2 Conversions among decimal floating types and between
decimal floating types and generic floating types.
#define __STDC_WANT_DEC_FP__ 1
#endif
+#include "dfp-dbg.h"
#include <float.h>
-extern void abort (void);
-static int failcnt;
-
-/* Support compiling the test to report individual failures; default is
- to abort as soon as a check fails. */
-#ifdef DBG
-#include <stdio.h>
-#define FAILURE { printf ("failed at line %d\n", __LINE__); failcnt++; }
-#else
-#define FAILURE abort ();
-#endif
-
volatile _Decimal32 d32;
volatile _Decimal64 d64;
volatile _Decimal128 d128;
if (d64 != __builtin_infd64())
FAILURE
- if (failcnt != 0)
- abort ();
-
- return 0;
+ FINISH
}