summaryrefslogtreecommitdiffstats
path: root/test/input
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-03-06 19:12:50 (GMT)
committerBrad King <brad.king@kitware.com>2014-03-24 15:37:20 (GMT)
commitedeba50dd3c12bae48a2b7b5d059184df54b8a62 (patch)
treec72d49cdba4e207bc74a617b47ebec0ec8a26c18 /test/input
parent110dacffd23854ca3d668a5ecebf41ad0a207834 (diff)
downloadCastXML-edeba50dd3c12bae48a2b7b5d059184df54b8a62.zip
CastXML-edeba50dd3c12bae48a2b7b5d059184df54b8a62.tar.gz
CastXML-edeba50dd3c12bae48a2b7b5d059184df54b8a62.tar.bz2
test: Add cases for class member template instantiation
Cover member templates of both classes and class templates.
Diffstat (limited to 'test/input')
-rw-r--r--test/input/Class-member-template.cxx4
-rw-r--r--test/input/Class-template-member-template.cxx4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/input/Class-member-template.cxx b/test/input/Class-member-template.cxx
new file mode 100644
index 0000000..8ffb3d6
--- /dev/null
+++ b/test/input/Class-member-template.cxx
@@ -0,0 +1,4 @@
+class start {
+ template <typename T> T method(T v) { return v; }
+};
+template int start::method<int>(int); // instantiation
diff --git a/test/input/Class-template-member-template.cxx b/test/input/Class-template-member-template.cxx
new file mode 100644
index 0000000..9dc6a54
--- /dev/null
+++ b/test/input/Class-template-member-template.cxx
@@ -0,0 +1,4 @@
+template <typename T> class start {
+ template <typename U> T method(U) { return T(); }
+};
+template int start<int>::method<char>(char); // instantiation