summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist5.C
blob: 97f039998024296051d64193812d04e793370011 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// PR c++/50024
// { dg-options -std=c++0x }

template< class T >
struct Container
{
  Container(){
    int* ptr = new int{};
  }
};

int main() {
    Container< int > c;
}