summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/constexpr-initlist10.C
blob: c12347dcc807bf6fe1170b1a529bfed8c457d4e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/70648
// { dg-do compile { target c++11 } }

struct C
{
  template <class... U>
  constexpr C (...) : c { static_cast<U &&>(0)... } {}
  int c[1];
};

static constexpr int b = C{}.c[0];