summaryrefslogtreecommitdiff
path: root/tests/headers/derive-hash-template-def-float.hpp
diff options
context:
space:
mode:
authorZhiting Zhu <zzhu@mozilla.com>2017-08-08 16:06:26 -0700
committerZhiting Zhu <zzhu@mozilla.com>2017-08-09 15:34:21 -0700
commitb4895d96698504dc28dfa64c4c4e4c3f3714a3c8 (patch)
tree2dc33b49a35db14adcec8ba88bae9db391753920 /tests/headers/derive-hash-template-def-float.hpp
parent3edb811aef594b8731ca2a4878a3fb2a6f3ae61b (diff)
Small dedicated tests for derive Hash
Diffstat (limited to 'tests/headers/derive-hash-template-def-float.hpp')
-rw-r--r--tests/headers/derive-hash-template-def-float.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/derive-hash-template-def-float.hpp b/tests/headers/derive-hash-template-def-float.hpp
new file mode 100644
index 00000000..28885ed1
--- /dev/null
+++ b/tests/headers/derive-hash-template-def-float.hpp
@@ -0,0 +1,8 @@
+// bindgen-flags: --with-derive-hash
+//
+/// Template definition containing a float, which cannot derive hash.
+template<typename T>
+struct foo {
+ T data;
+ float b;
+};