summaryrefslogtreecommitdiff
path: root/tests/headers/forward-inherit-struct-with-fields.hpp
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-11 00:29:58 +0100
committerEmilio Cobos Álvarez <ecoal95@gmail.com>2016-11-11 00:42:00 +0100
commit5e41fb90044adab76fe6a0a2560ea5e2c53ac6f8 (patch)
treea0374a43c24136f61d45b3fd77a55dcf57f4f787 /tests/headers/forward-inherit-struct-with-fields.hpp
parentb3322ddf2ae66a287bf53e94bcf1500ae5981c74 (diff)
ir: Search for compound structures when we have unexposed type and base class cursor.
And it's not a valid identifier as a template parameter. See the comment and the tests for details.
Diffstat (limited to 'tests/headers/forward-inherit-struct-with-fields.hpp')
-rw-r--r--tests/headers/forward-inherit-struct-with-fields.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/forward-inherit-struct-with-fields.hpp b/tests/headers/forward-inherit-struct-with-fields.hpp
new file mode 100644
index 00000000..437fff5d
--- /dev/null
+++ b/tests/headers/forward-inherit-struct-with-fields.hpp
@@ -0,0 +1,8 @@
+template <typename> class Rooted;
+namespace js {
+ template <typename T> class RootedBase {
+ T* foo;
+ Rooted<T>* next;
+ };
+}
+template <typename T> class Rooted : js::RootedBase<T> {};