☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p3524c.C
☽
☼
gcc/testsuite/g++.old-deja/g++.mike/p3524c.C
code
plain
raw
1
// { dg-do assemble }
2
// Make sure we can cast to a templated type, that requires a conversion by
3
// constructor, from a non-aggregate type.
4
5
// prms-id: 3524
6
7
template <class T>
8
struct ccPair {
9
ccPair (int i) { }
10
};
11
12
void foo ()
13
{
14
(ccPair<float>)1;
15
}