diff options
Diffstat (limited to 'bindgen-tests/tests/headers/complex.h')
-rw-r--r-- | bindgen-tests/tests/headers/complex.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/complex.h b/bindgen-tests/tests/headers/complex.h new file mode 100644 index 00000000..2996be1f --- /dev/null +++ b/bindgen-tests/tests/headers/complex.h @@ -0,0 +1,17 @@ +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq + +#define COMPLEX_TEST(ty_, name_) \ + struct Test##name_ { \ + ty_ _Complex mMember; \ + \ + }; \ + struct Test##name_##Ptr { \ + ty_ _Complex* mMember; \ + }; + +COMPLEX_TEST(double, Double) +COMPLEX_TEST(float, Float) + +// FIXME: 128-byte-aligned in some machines +// which we can't support right now in Rust. +// COMPLEX_TEST(long double, LongDouble) |