diff options
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.c | 17 |
1 files changed, 17 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 000000000..b59453e0b --- /dev/null +++ b/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); +} |