☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-array3.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-array3.C
code
plain
raw
1
// PR c++/48132
2
// { dg-do compile { target c++11 } }
3
4
struct C
5
{
6
constexpr C (int x) : c (x) {}
7
int c;
8
};
9
10
void
11
foo ()
12
{
13
C a[] = { C (0) };
14
}