☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp67.C
☽
☼
gcc/testsuite/g++.old-deja/g++.pt/memtemp67.C
code
plain
raw
1
// { dg-do run }
2
template <class T>
3
struct A
4
{
5
template <class T2>
6
operator A<T2>() const { return A<T2>(); }
7
};
8
9
int main()
10
{
11
A<int> a1;
12
A<long> a2;
13
A<double> a3;
14
A<char> a4;
15
16
a2 = a1.operator A<long>();
17
a3 = (A<double>) a1;
18
a4 = a1;
19
}
20