summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/struct-layout-1_x2.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.dg/compat/struct-layout-1_x2.h')
-rw-r--r--gcc/testsuite/g++.dg/compat/struct-layout-1_x2.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/compat/struct-layout-1_x2.h b/gcc/testsuite/g++.dg/compat/struct-layout-1_x2.h
new file mode 100644
index 000000000..907a2c959
--- /dev/null
+++ b/gcc/testsuite/g++.dg/compat/struct-layout-1_x2.h
@@ -0,0 +1,14 @@
+#undef F
+#undef N
+#undef B
+#undef TX
+#define F(n, x, v, w) \
+ if (arg.x != s##n.x) FAIL (n, 30);
+#define N(n, x)
+#define B(n, x, v, w) \
+ if (arg.x != s##n.x) FAIL (n, 30);
+#define TX(n, type, attrs, fields, ops) \
+void checkx##n (type S##n arg) \
+{ \
+ ops \
+}