diff options
author | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-08-16 21:26:01 -0500 |
---|---|---|
committer | Zhiting Zhu <zhitingz@cs.utexas.edu> | 2017-08-21 16:14:41 -0500 |
commit | ff9d000435b84220d91347592282a76cbf4942e2 (patch) | |
tree | 080cb3c54b572fab3a0e4f7a8c059155a27ff378 /tests/headers/derive-hash-template-inst-float.hpp | |
parent | 3fc501f93fa9b5a19f97b7a7a2a3625616af7128 (diff) |
Small tests for derive Eq
Diffstat (limited to 'tests/headers/derive-hash-template-inst-float.hpp')
-rw-r--r-- | tests/headers/derive-hash-template-inst-float.hpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/headers/derive-hash-template-inst-float.hpp b/tests/headers/derive-hash-template-inst-float.hpp index 59af69bd..14fd89a0 100644 --- a/tests/headers/derive-hash-template-inst-float.hpp +++ b/tests/headers/derive-hash-template-inst-float.hpp @@ -1,17 +1,17 @@ -// bindgen-flags: --with-derive-hash +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq // -/// Template definition that doesn't contain float can derive hash -template<typename T> +/// Template definition that doesn't contain float can derive hash/partialeq/eq +template <typename T> struct foo { T data; }; -/// Can derive hash when instantiated with int +/// Can derive hash/partialeq/eq when instantiated with int struct IntStr { foo<int> a; }; -/// Cannot derive hash when instantiated with float +/// Cannot derive hash/eq when instantiated with float but can derive partialeq struct FloatStr { foo<float> a; }; |