☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-cast1.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/initlist-cast1.C
code
plain
raw
1
// PR c++/83186
2
// { dg-do compile { target c++11 } }
3
4
struct a {
5
operator unsigned();
6
};
7
template <class> void b() { static_cast<unsigned>(a{}); }
8
9
int main()
10
{
11
b<int>();
12
}