summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/derive-hash-template-def-float.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'bindgen-tests/tests/headers/derive-hash-template-def-float.hpp')
-rw-r--r--bindgen-tests/tests/headers/derive-hash-template-def-float.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/derive-hash-template-def-float.hpp b/bindgen-tests/tests/headers/derive-hash-template-def-float.hpp
new file mode 100644
index 00000000..253fb9ce
--- /dev/null
+++ b/bindgen-tests/tests/headers/derive-hash-template-def-float.hpp
@@ -0,0 +1,8 @@
+// bindgen-flags: --with-derive-hash --with-derive-partialord --with-derive-ord --with-derive-partialeq --with-derive-eq
+//
+/// Template definition containing a float, which cannot derive Hash/Eq/Ord but can derive PartialEq/PartialOrd.
+template <typename T>
+struct foo {
+ T data;
+ float b;
+};