Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-const3.C
blob: 83e3155c78d54671f59ba4c86f1d58a8c9cd1893 [
file
] [
log
] [
blame
]
// PR c++/91607
// { dg-do compile { target c++11 } }
enum
A
{
a
};
constexpr
A f
(
const
A x
)
{
return
x
;
}
int
main
()
{
constexpr
A a0
=
f
(
a
);
constexpr
A a1
{};
constexpr
A a2
=
f
(
a1
);
}