diff options
Diffstat (limited to 'tests/headers/issue-662-part-2.hpp')
-rw-r--r-- | tests/headers/issue-662-part-2.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/headers/issue-662-part-2.hpp b/tests/headers/issue-662-part-2.hpp new file mode 100644 index 00000000..84edb397 --- /dev/null +++ b/tests/headers/issue-662-part-2.hpp @@ -0,0 +1,11 @@ +// bindgen-flags: --blacklist-type RefPtr --raw-line '#[derive(Clone, Copy, Debug)] pub struct RefPtr<T>(T);' -- --std=c++14 + +// This is pretty much the same as the other issue 662 test case, but this time +// we blacklist RefPtr to exercise the instantiation-of-a-blacklisted-template +// path in the template analysis. + +template <class> class RefPtr {}; +template <class T> class nsMainThreadPtrHolder { T a; }; +template <class U> class nsMainThreadPtrHandle { + RefPtr<nsMainThreadPtrHolder<U>> mPtr; +}; |