summaryrefslogtreecommitdiffstats
path: root/test/input/Class-template-member-Typedef.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-27 16:57:40 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-27 16:57:40 (GMT)
commitf2d0fdfe812c7f96d8193194a5840ff011aa7ec8 (patch)
tree6d9ef52592f16ebe5c700bdf33ecfacc4c46eecb /test/input/Class-template-member-Typedef.cxx
parentbeea56e5aedd3b41a674d6ea548d34d428fa2678 (diff)
downloadCastXML-f2d0fdfe812c7f96d8193194a5840ff011aa7ec8.zip
CastXML-f2d0fdfe812c7f96d8193194a5840ff011aa7ec8.tar.gz
CastXML-f2d0fdfe812c7f96d8193194a5840ff011aa7ec8.tar.bz2
Output: Desugar non-dependent typedef members of class templates
Since gccxml does not output uninstantiated templates we must desugar typedef types that would refer to declarations whose context is a template. This is consistent with gccxml behavior.
Diffstat (limited to 'test/input/Class-template-member-Typedef.cxx')
-rw-r--r--test/input/Class-template-member-Typedef.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/input/Class-template-member-Typedef.cxx b/test/input/Class-template-member-Typedef.cxx
new file mode 100644
index 0000000..61db52d
--- /dev/null
+++ b/test/input/Class-template-member-Typedef.cxx
@@ -0,0 +1,6 @@
+template <typename T> class start {
+ typedef int Int;
+public:
+ int method(Int);
+};
+template class start<int>;