summaryrefslogtreecommitdiff
path: root/tests/headers/issue-662-part-2.hpp
blob: 1330c34280a7e32017599e8179d7f2edcc29ad0a (plain)
1
2
3
4
5
6
7
8
9
10
11
// bindgen-flags: --blocklist-type RefPtr --raw-line '#[derive(Clone, Copy, Debug)] pub struct RefPtr<T>(T);' -- --std=c++14

// This is pretty much the same as the other issue 662 test case, but this time
// we blocklist RefPtr to exercise the instantiation-of-a-blocklisted-template
// path in the template analysis.

template <class> class RefPtr {};
template <class T> class nsMainThreadPtrHolder { T a; };
template <class U> class nsMainThreadPtrHandle {
    RefPtr<nsMainThreadPtrHolder<U>> mPtr;
};