Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-bitfield.C
blob: a50ac36362062c23ae096322fd6d9853c4b0e0e6 [
file
] [
log
] [
blame
]
// PR c++/46369
// { dg-do compile { target c++11 } }
struct
A
{
unsigned
i
:
1
;
};
constexpr
A f
()
{
return
{
1
};
}
constexpr
bool
b
=
(
f
().
i
==
1
);