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

20 lines
257 B
C

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