]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
new
authorJason Merrill <jason@gcc.gnu.org>
Tue, 17 Mar 1998 00:19:43 +0000 (19:19 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 17 Mar 1998 00:19:43 +0000 (19:19 -0500)
From-SVN: r18638

gcc/testsuite/g++.old-deja/g++.pt/lookup1.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/parse1.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.pt/lookup1.C b/gcc/testsuite/g++.old-deja/g++.pt/lookup1.C
new file mode 100644 (file)
index 0000000..359915c
--- /dev/null
@@ -0,0 +1,14 @@
+// Build don't link:
+
+template <class T, class Allocator>
+  struct __vector_alloc_base 
+{ 
+  typedef int allocator_type; 
+};
+
+template <class T>
+  struct vector :  __vector_alloc_base<T,int> 
+{
+  typedef short allocator_type;
+  explicit vector(const allocator_type& a = allocator_type()) {}
+};
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/parse1.C b/gcc/testsuite/g++.old-deja/g++.pt/parse1.C
new file mode 100644 (file)
index 0000000..e79afdd
--- /dev/null
@@ -0,0 +1 @@
+  template <class T> combine { };