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