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