1// bindgen-flags: --enable-cxx-namespaces --allowlist-type StaticRefPtr --opaque-type 'JS::Rooted' -- -std=c++14 2 3namespace JS { 4template <typename T> class Rooted { using ElementType = T; }; 5} 6class c { 7 JS::Rooted<int> b; 8}; 9class B { 10 c a; 11}; 12template <class> class StaticRefPtr {}; 13struct { 14 StaticRefPtr<B> d; 15} e; 16