1 2 3 4 5 6 7 8 9
// bindgen-flags: --blocklist-type RefPtr --raw-line "#[derive(Clone, Copy, Debug)] pub struct RefPtr<T>(T);" --allowlist-type "HasRefPtr" -- -std=c++14 template <class> class RefPtr {}; template <typename T> class HasRefPtr { typedef T TypedefOfT; RefPtr<TypedefOfT> refptr_member; };