☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-const3.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/constexpr-const3.C
code
plain
raw
1
// PR c++/91607
2
// { dg-do compile { target c++11 } }
3
4
enum A { a };
5
constexpr A f(const A x) { return x; }
6
7
int main()
8
{
9
constexpr A a0 = f(a);
10
constexpr A a1 {};
11
constexpr A a2 = f(a1);
12
}