diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/compat/struct-complex-1.h')
-rw-r--r-- | gcc/testsuite/gcc.dg/compat/struct-complex-1.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/compat/struct-complex-1.h b/gcc/testsuite/gcc.dg/compat/struct-complex-1.h new file mode 100644 index 000000000..8b5393774 --- /dev/null +++ b/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; +}; |