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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p3524b.C
blob
34d106040b91c8bef0bf852a891614906e6ccdbd
1
// { dg-do assemble }
2
// Make sure we can cast to a templated type, that requires a conversion by
3
// constructor, from a derived type to a base type.
4
5
// prms-id: 3524
6
7
template <class T>
8
struct ccPair {
9
ccPair () { }
10
};
11
12
template <class T>
13
struct ccO : ccPair<T> {
14
ccO () { }
15
};
16
17
void foo ()
18
{
19
ccO<float> r;
20
(ccPair<float>)r;
21
}