summaryrefslogtreecommitdiff
path: root/tests/headers/issue-1118-using-forward-decl.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-10-30 10:18:07 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-10-30 10:21:48 +0100
commit0db2bd0c53c096f47569f07146e4890baa94d35a (patch)
tree031f4be01c733f447b8758fc02fbf066f84dd066 /tests/headers/issue-1118-using-forward-decl.hpp
parent8d045d2f20f004bcc813bcf6aa68b170b6aa9c77 (diff)
ir: Don't eagerly-resolve template alias declarations.
Fixes #1118
Diffstat (limited to 'tests/headers/issue-1118-using-forward-decl.hpp')
-rw-r--r--tests/headers/issue-1118-using-forward-decl.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/headers/issue-1118-using-forward-decl.hpp b/tests/headers/issue-1118-using-forward-decl.hpp
new file mode 100644
index 00000000..b6ea63f6
--- /dev/null
+++ b/tests/headers/issue-1118-using-forward-decl.hpp
@@ -0,0 +1,10 @@
+template <class> class nsTArray;
+template <class b> using c = nsTArray<b>;
+class nsTArray_base {
+ int *d;
+};
+template <class> class nsTArray : nsTArray_base {};
+class nsIContent {
+ nsTArray<nsIContent *> foo;
+};
+nsTArray<nsIContent*> *Gecko_GetAnonymousContentForElement();