New file.
From-SVN: r27521
This commit is contained in:
parent
92da7074de
commit
6d1a9047b8
15
gcc/testsuite/g++.old-deja/g++.ns/template11.C
Normal file
15
gcc/testsuite/g++.old-deja/g++.ns/template11.C
Normal file
@ -0,0 +1,15 @@
|
||||
void foo(){}
|
||||
|
||||
namespace Bar{
|
||||
template<class X>
|
||||
class Y{
|
||||
friend void foo(Y<X>){}
|
||||
};
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
Bar::Y<int> y;
|
||||
foo(y);
|
||||
foo();
|
||||
}
|
Loading…
Reference in New Issue
Block a user