summaryrefslogtreecommitdiff
path: root/tests/headers/derive-hash-template-def-float.hpp
blob: 253fb9cea2cfbbbf7380f350a9804d6b73dc3281 (plain)
1
2
3
4
5
6
7
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;
};