Debian Codegraph @

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

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 }