OSDN Git Service

* gcc.dg/compat/compat-common.h: New file.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / compat / struct-by-value-7_x.c
index 7f9d09a..30d9450 100644 (file)
@@ -1,20 +1,9 @@
-#ifdef DBG
-#include <stdio.h>
-#define DEBUG_FPUTS(x) fputs (x, stdout)
-#define DEBUG_DOT putc ('.', stdout)
-#define DEBUG_NL putc ('\n', stdout)
-#else
-#define DEBUG_FPUTS(x)
-#define DEBUG_DOT
-#define DEBUG_NL
-#endif
+#include "compat-common.h"
 
 #include "fp-struct-defs.h"
 #include "fp-struct-check.h"
 #include "fp-struct-test-by-value-x.h"
 
-extern void abort (void);
-
 DEFS(ld, long double)
 CHECKS(ld, long double)
 
@@ -59,5 +48,8 @@ T(Sld14, long double)
 T(Sld15, long double)
 T(Sld16, long double)
 
+if (fails != 0)
+  abort ();
+
 #undef T
 }