Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist18.C

raw
1 // PR c++/40308, 40311
2 // { dg-do run { target c++11 } }
3
4 template< typename T >
5 struct test {
6 test() : data{} {}
7
8 T data;
9 };
10
11 int main()
12 {
13 test<int> x;
14 test<int*> y;
15 int * a = new int{};
16 int * b = new int{5};
17 return 0;
18 }