summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-array2.C
blob: 9577f75d9fd89cf0d8fcd7ae9afcc98503e89383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR c++/46348
// { dg-options -std=c++0x }

template<__SIZE_TYPE__ _Nw>
  struct _Base
  {
    typedef unsigned long _WordT;

    _WordT _M_w[_Nw];

    constexpr
    _Base()
    : _M_w() { }
  };

int main()
{
  _Base<256> bs;
}