112a9d9c8Sopenharmony_ci// bindgen-flags: --blocklist-type RefPtr --raw-line '#[derive(Clone, Copy, Debug)] pub struct RefPtr<T>(T);' -- --std=c++14
212a9d9c8Sopenharmony_ci
312a9d9c8Sopenharmony_ci// This is pretty much the same as the other issue 662 test case, but this time
412a9d9c8Sopenharmony_ci// we blocklist RefPtr to exercise the instantiation-of-a-blocklisted-template
512a9d9c8Sopenharmony_ci// path in the template analysis.
612a9d9c8Sopenharmony_ci
712a9d9c8Sopenharmony_citemplate <class> class RefPtr {};
812a9d9c8Sopenharmony_citemplate <class T> class nsMainThreadPtrHolder { T a; };
912a9d9c8Sopenharmony_citemplate <class U> class nsMainThreadPtrHandle {
1012a9d9c8Sopenharmony_ci    RefPtr<nsMainThreadPtrHolder<U>> mPtr;
1112a9d9c8Sopenharmony_ci};
12