summaryrefslogtreecommitdiff
path: root/tests/headers/issue-645-cannot-find-type-T-in-this-scope.hpp
blob: 8e07a8a0fdda7fbe87d591ddbee02b284e99e721 (plain)
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;
};