* friend1.C: New test.
From-SVN: r39714
This commit is contained in:
parent
8826b15be3
commit
8b2f4063e2
@ -1,3 +1,7 @@
|
||||
2001-02-15 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* friend1.C: New test.
|
||||
|
||||
2000-05-28 Alexandre Oliva <aoliva@cygnus.com>
|
||||
|
||||
* expr2.C: New test.
|
||||
|
12
gcc/testsuite/g++.old-deja/g++.oliva/friend1.C
Normal file
12
gcc/testsuite/g++.old-deja/g++.oliva/friend1.C
Normal file
@ -0,0 +1,12 @@
|
||||
// Build don't link:
|
||||
|
||||
// Copyright (C) 2001 Free Software Foundation
|
||||
|
||||
// by Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
// We shouldn't warn about bar referring to a non-template in this case.
|
||||
|
||||
template <typename T>
|
||||
class foo {
|
||||
friend int bar(int);
|
||||
};
|
Loading…
Reference in New Issue
Block a user