From: Alexandre Oliva Date: Thu, 15 Feb 2001 12:54:38 +0000 (+0000) Subject: * friend1.C: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b2f4063e29b45fc7b73a8f7bbd1424340310d24;p=gcc.git * friend1.C: New test. From-SVN: r39714 --- diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog index 73b0aa47c44..756c72bba73 100644 --- a/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog +++ b/gcc/testsuite/g++.old-deja/g++.oliva/ChangeLog @@ -1,3 +1,7 @@ +2001-02-15 Alexandre Oliva + + * friend1.C: New test. + 2000-05-28 Alexandre Oliva * expr2.C: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.oliva/friend1.C b/gcc/testsuite/g++.old-deja/g++.oliva/friend1.C new file mode 100644 index 00000000000..aea98e1136e --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.oliva/friend1.C @@ -0,0 +1,12 @@ +// Build don't link: + +// Copyright (C) 2001 Free Software Foundation + +// by Alexandre Oliva + +// We shouldn't warn about bar referring to a non-template in this case. + +template +class foo { + friend int bar(int); +};