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