summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/derive-hash-struct-with-anon-struct-float.h
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/derive-hash-struct-with-anon-struct-float.h')
-rw-r--r--bindgen-tests/tests/headers/derive-hash-struct-with-anon-struct-float.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/derive-hash-struct-with-anon-struct-float.h b/bindgen-tests/tests/headers/derive-hash-struct-with-anon-struct-float.h
new file mode 100644
index 00000000..dc6e7329
--- /dev/null
+++ b/bindgen-tests/tests/headers/derive-hash-struct-with-anon-struct-float.h
@@ -0,0 +1,9 @@
+// bindgen-flags: --with-derive-hash --with-derive-partialord --with-derive-ord --with-derive-partialeq --with-derive-eq
+//
+/// A struct containing a struct containing a float that cannot derive Hash/Eq/Ord but can derive PartialEq/PartialOrd
+struct foo {
+ struct {
+ float a;
+ float b;
+ } bar;
+};