☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-ex4.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-ex4.C
code
plain
raw
1
// { dg-do compile { target c++11 } }
2
3
struct A
4
{
5
constexpr A(int) { }
6
constexpr operator int() const { return 1; };
7
};
8
9
template <class T>
10
struct B
11
{
12
static constexpr A a = A(1);
13
int ar[a];
14
};
15
16
B<int> b;