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