aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-complex-1.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-complex-1.h')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-complex-1.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-complex-1.h b/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-complex-1.h
new file mode 100644
index 000000000..8b5393774
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/compat/struct-complex-1.h
@@ -0,0 +1,17 @@
+#include <complex.h>
+
+struct st
+{
+ int s1;
+ float complex x;
+ int s2;
+};
+
+typedef struct { float r, i; } _complex;
+
+struct stc
+{
+ int s1;
+ _complex x;
+ int s2;
+};