summaryrefslogtreecommitdiff
path: root/gcc_arm/testsuite/g++.old-deja/g++.pt/ttp44.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_arm/testsuite/g++.old-deja/g++.pt/ttp44.C')
-rwxr-xr-xgcc_arm/testsuite/g++.old-deja/g++.pt/ttp44.C17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc_arm/testsuite/g++.old-deja/g++.pt/ttp44.C b/gcc_arm/testsuite/g++.old-deja/g++.pt/ttp44.C
new file mode 100755
index 0000000..7f797e6
--- /dev/null
+++ b/gcc_arm/testsuite/g++.old-deja/g++.pt/ttp44.C
@@ -0,0 +1,17 @@
+// Build don't link:
+
+template < class T, template < class > class E1, template < class > class E2 >
+class Add {
+public:
+ Add(const E1<T>& e1, const E2<T>& e2) {}
+};
+
+template < class T >
+struct Id {
+ template < template < class > class E >
+ Add < T, Id, E > operator+(const E<T>& e) const {
+ return Add < T, Id, E >(*this, e);
+ }
+};
+
+template struct Id<double>;