Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-initlist10.C

raw
1 // PR c++/70648
2 // { dg-do compile { target c++11 } }
3
4 struct C
5 {
6 template <class... U>
7 constexpr C (...) : c { static_cast<U &&>(0)... } {}
8 int c[1];
9 };
10
11 static constexpr int b = C{}.c[0];