// bindgen-flags: --with-derive-hash --with-derive-partialeq --with-derive-eq template class HandleWithDtor { T* ptr; ~HandleWithDtor() {} }; typedef HandleWithDtor HandleValue; class WithoutDtor { HandleValue shouldBeWithDtor; };