OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp67.C
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