1 // bindgen-flags: --blocklist-type RefPtr --raw-line '#[derive(Clone, Copy, Debug)] pub struct RefPtr<T>(T);' -- --std=c++14 2 3 // This is pretty much the same as the other issue 662 test case, but this time 4 // we blocklist RefPtr to exercise the instantiation-of-a-blocklisted-template 5 // path in the template analysis. 6 7 template <class> class RefPtr {}; 8 template <class T> class nsMainThreadPtrHolder { T a; }; 9 template <class U> class nsMainThreadPtrHandle { 10 RefPtr<nsMainThreadPtrHolder<U>> mPtr; 11 }; 12