diff options
Diffstat (limited to 'bindgen-tests/tests/headers/class_with_dtor.hpp')
-rw-r--r-- | bindgen-tests/tests/headers/class_with_dtor.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bindgen-tests/tests/headers/class_with_dtor.hpp b/bindgen-tests/tests/headers/class_with_dtor.hpp new file mode 100644 index 00000000..f52858a7 --- /dev/null +++ b/bindgen-tests/tests/headers/class_with_dtor.hpp @@ -0,0 +1,14 @@ +// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq + + +template <typename T> +class HandleWithDtor { + T* ptr; + ~HandleWithDtor() {} +}; + +typedef HandleWithDtor<int> HandleValue; + +class WithoutDtor { + HandleValue shouldBeWithDtor; +}; |