#include <stdio.h>
-#if !(defined(__STDC__) || defined(__cplusplus))
-/* Only for use in function parameter lists and as function return type. */
-#define void
-#endif
-
typedef int boolean;
#define TRUE 1
#define FALSE 0
}
#define check(type,typeprefix,typestr,equalfn,mainfn) \
-static boolean equalfn (type* x, type* y); \
+static boolean equalfn (volatile type* x, volatile type* y); \
static void mainfn (void) \
{ \
int mant_bits; \
} \
printf("\n"); \
} \
-static boolean equalfn (type* x, type* y) { return *x == *y; } \
+static boolean equalfn (volatile type* x, volatile type* y) \
+{ \
+ return *x == *y; \
+} \
check(float,"float","float",equal_float,main_float)
check(double,"double","double",equal_double,main_double)
#endif
flipped_double();
- if (ferror(stdout)) return 1;
+ if (ferror(stdout) || fclose(stdout)) return 1;
return 0;
}