Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
constexpr-nsdmi1.C
blob: b94cf3099f4b101df9e5fea3dc72eb6c87787f28 [
file
] [
log
] [
blame
]
// PR c++/79592
// { dg-do compile { target c++11 } }
struct
pthread_mutex
{
void
*
m_ptr
;
};
struct
M
{
pthread_mutex m
=
{
((
void
*)
1LL
)
};
// { dg-error "reinterpret_cast" }
};
constexpr
M m
;
// { dg-error "M::M" }