repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend33.C
blob
016be7013e699560af7b2d10737ab1285804d3b2
1
// { dg-do link }
2
// { dg-options "-g" }
3
4
template <class P1>
5
struct S1
6
{
7
struct SS1
8
{
9
};
10
friend void Foo (const SS1& ss1)
11
{
12
}
13
};
14
15
template <class P1>
16
void Foo(const S1<P1>& s1)
17
{
18
typedef typename S1<P1>::SS1 TYPE;
19
TYPE t;
20
Foo(t);
21
}
22
23
int main ()
24
{
25
S1<double> obj;
26
Foo(obj);
27
}
28