Sign in
cobalt
/
cobalt
/
37ef7f8c0c60f95c9821b4d9f3273c9ef3666a79
/
.
/
src
/
third_party
/
llvm-project
/
clang
/
test
/
CXX
/
expr
/
expr.post
/
expr.static.cast
/
p7.cpp
blob: fd8e478b5193ba0afe8c2481bff98c1ac02e2f7c [
file
] [
log
] [
blame
]
// RUN: %clang_cc1 -std=c++1z -verify %s -fcxx-exceptions
void
(*
p
)()
noexcept
;
void
(*
q
)();
void
f
()
{
// FIXME: This seems like a bad rule.
p
=
static_cast
<
decltype
(
p
)>(
q
);
// expected-error {{not allowed}}
q
=
static_cast
<
decltype
(
q
)>(
p
);
}