summaryrefslogtreecommitdiff
path: root/bindgen-tests/tests/headers/issue-447.hpp
blob: 43765fa9ee639667d8182910b873b305186f162b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// bindgen-flags: --enable-cxx-namespaces --allowlist-type JSAutoCompartment -- -std=c++11

namespace mozilla {
    template <typename> class a {};
    namespace detail {
        class GuardObjectNotifier {};
        struct b;
    }
    class c {
        typedef detail::b d;
    };
}
namespace js {
    class D {
        mozilla::a<mozilla::c> e;
    };
}
struct f {
    js::D g;
};
namespace js {
    struct ContextFriendFields : f {};
}
class JSAutoCompartment {
public:
    JSAutoCompartment(mozilla::detail::GuardObjectNotifier);
};