Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-92443.C
blob: 8d03e3ed87145c910e386595030d140f84a99f90 [
file
] [
log
] [
blame
]
// PR c++/92443
// { dg-do compile { target c++11 } }
struct
a
{
constexpr
a
(
long
)
:
b
()
{}
operator
long
()
const
;
operator
bool
();
constexpr
friend
a
operator
|(
a
,
a c
)
{
return
c
;
}
long
b
;
};
using
d
=
a
;
constexpr
d e
=
6
,
f
=
f
|
e
;