aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/initlist18.C
blob: bcf90c83a0cec87d604304b472ed1fa36d3b14a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// PR c++/40308, 40311
// { dg-do run { target c++11 } }

template< typename T >
struct test {
   test() : data{} {}

   T data;
};

int main()
{
   test<int> x;
   test<int*> y;
   int * a = new int{};
   int * b = new int{5};
   return 0;
}