Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist-cast1.C

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 }