aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c b/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c
new file mode 100644
index 000000000..b59453e0b
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c
@@ -0,0 +1,17 @@
+/* { dg-prune-output ".*-Wno-abi.*" } */
+
+#include "struct-layout-1.h"
+
+#define TX(n, type, attrs, fields, ops) extern void test##n (void);
+#include "struct-layout-1_test.h"
+#undef TX
+
+int main (void)
+{
+#define TX(n, type, attrs, fields, ops) test##n ();
+#include "struct-layout-1_test.h"
+#undef TX
+ if (fails)
+ abort ();
+ exit (0);
+}