☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-initlist10.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-initlist10.C
code
plain
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];