aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2001-04-20 16:06:06 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2001-04-20 16:06:06 +0000
commitaa1826e2c4728c1ec3215b4770e0fe29b1500dac (patch)
tree75cb508620c3c8f8c3a2093c2de7c74b85375ce5 /gcc/testsuite
parent06d9f09f53cd3d0c1164986a9c5ff3a37e59dec4 (diff)
downloadgcc-aa1826e2c4728c1ec3215b4770e0fe29b1500dac.zip
gcc-aa1826e2c4728c1ec3215b4770e0fe29b1500dac.tar.gz
gcc-aa1826e2c4728c1ec3215b4770e0fe29b1500dac.tar.bz2
tree.c (cp_tree_equal): Adjust final switch formatting.
cp: * tree.c (cp_tree_equal): Adjust final switch formatting. Add 't' case. testsuite: * g++.old-deja/g++.pt/typename28.C: New test. From-SVN: r41462
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/typename28.C27
2 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 157bbed..f2c3d70 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2001-04-20 Nathan Sidwell <nathan@codesourcery.com>
+ * g++.old-deja/g++.pt/typename28.C: New test.
+
+2001-04-20 Nathan Sidwell <nathan@codesourcery.com>
+
* g++.old-deja/g++.abi/empty2.C: New test.
* g++.old-deja/g++.abi/empty3.C: New test.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename28.C b/gcc/testsuite/g++.old-deja/g++.pt/typename28.C
new file mode 100644
index 0000000..a538c4d
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.pt/typename28.C
@@ -0,0 +1,27 @@
+// Build don't link:
+//
+// Origin: Jens.Maurer@gmx.net
+// Copyright (C) 2001 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 11 Apr 2001 <nathan@codesourcery.com>
+
+// Bug 1844. We can meet types in cp_tree_equal via a template-id-expr.
+
+typedef int *Ptr;
+
+template<class T> struct B
+{
+ typedef typename T::template X<T> type;
+ typedef typename T::template X<Ptr> type2;
+ typedef typename T::template X<int *> type3;
+
+ void foo (type);
+ void baz (type2);
+
+};
+
+template<class T> void B<T>::foo (type)
+{
+}
+template<class T> void B<T>::baz (type3)
+{
+}