* g++.old-deja/g++.pt/friend38.C: New test.

From-SVN: r23916
This commit is contained in:
Alexandre Oliva 1998-11-26 20:58:48 +00:00 committed by Alexandre Oliva
parent ea84ebc2bc
commit 91910750a0
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,7 @@
1998-11-27 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.pt/friend38.C: New test.
* g++.old-deja/g++.ns/crash2.C: New test.
* g++.old-deja/g++.pt/defarg8.C: New test.

View File

@ -0,0 +1,10 @@
// Build don't link:
// Overly simplified from testcase by "B. K. Oxley" <binkley@bigfoot.com>
// crash test - XFAIL *-*-*
template<class P> struct foo {
typedef P parent_type;
friend parent_type; // ERROR - template parameters cannot be friends
};