mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-12 19:07:21 +08:00
friend35.C: New test.
* g++.old-deja/g++.pt/friend35.C: New test. A template function must be declared before its specializations can be named in friend declarations. From-SVN: r22861
This commit is contained in:
parent
40208b1c3a
commit
0eaae86cab
@ -1,3 +1,9 @@
|
||||
1998-10-06 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* g++.old-deja/g++.pt/friend35.C: New test. A template function
|
||||
must be declared before its specializations can be named in friend
|
||||
declarations.
|
||||
|
||||
1998-10-05 Dave Love <d.love@dl.ac.uk>
|
||||
|
||||
* g77.f-torture/execute/u77-test.f: Add regression test for RAND.
|
||||
|
7
gcc/testsuite/g++.old-deja/g++.pt/friend35.C
Normal file
7
gcc/testsuite/g++.old-deja/g++.pt/friend35.C
Normal file
@ -0,0 +1,7 @@
|
||||
// Build don't link:
|
||||
|
||||
class foo {
|
||||
friend void bar<int>(int); // ERROR - must be declared first - XFAIL *-*-*
|
||||
};
|
||||
|
||||
template <typename T> void bar(T);
|
Loading…
Reference in New Issue
Block a user