1 // bindgen-flags: --with-derive-hash --with-derive-partialord --with-derive-ord --with-derive-partialeq --with-derive-eq
2 //
3 /// Template definition that doesn't contain float can derive Hash/PartialOrd/Ord/PartialEq/Eq
4 template <typename T>
5 struct foo {
6     T data;
7 };
8 
9 /// Can derive Hash/PartialOrd/Ord/PartialEq/Eq when instantiated with int
10 struct IntStr {
11     foo<int> a;
12 };
13 
14 /// Cannot derive Hash/Eq/Ord when instantiated with float but can derive PartialEq/PartialOrd
15 struct FloatStr {
16     foo<float> a;
17 };
18