summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/ttp19.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/ttp19.C')
-rwxr-xr-xgcc/testsuite/g++.old-deja/g++.pt/ttp19.C24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/ttp19.C b/gcc/testsuite/g++.old-deja/g++.pt/ttp19.C
new file mode 100755
index 0000000..8a24946
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/ttp19.C
@@ -0,0 +1,24 @@
+#include <vector>
+
+template<template<class> class D,class E> class C
+{
+ D<E> d;
+ public:
+ int size() { return d.size(); }
+};
+
+template<template<class> class D,class E> int size(D<E> &d1)
+{
+ d1.size();
+ C<D,E> d2;
+ d2.size();
+ return 0;
+}
+
+int main()
+{
+ std::vector<int> c1;
+ std::vector<char> c2;
+ size(c1);
+ size(c2);
+}