summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/initlist18.C
blob: c9a9bcd94151cbc24998d36e83b74b00186e54b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/40308, 40311
// { dg-do run }
// { dg-options "-std=c++0x" }

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;
}