summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c')
-rw-r--r--gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c b/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c
new file mode 100644
index 00000000000..0a2fb42c792
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/compat/struct-layout-1_main.c
@@ -0,0 +1,15 @@
+#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);
+}
OpenPOWER on IntegriCloud