☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist35.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist35.C
code
plain
raw
1
// PR c++/41510
2
// { dg-do compile { target c++11 } }
3
4
struct B
5
{
6
B(int, int);
7
};
8
struct A
9
{
10
A(int, int);
11
A(const B&);
12
};
13
14
void f()
15
{
16
A a = { 1, 2 };
17
}
18
19
template <class T> void g()
20
{
21
A a = { 1, 2 };
22
}
23
24
template void g<int>();