Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}