summaryrefslogtreecommitdiffstats
path: root/test/input
diff options
context:
space:
mode:
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