repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang-cl] Ignore /Wv and /Wv:17 flags
[llvm-project.git]
/
clang
/
test
/
CXX
/
expr
/
expr.post
/
expr.static.cast
/
p7.cpp
blob
fd8e478b5193ba0afe8c2481bff98c1ac02e2f7c
1
// RUN: %clang_cc1 -std=c++1z -verify %s -fcxx-exceptions
2
3
void
(*
p
)()
noexcept
;
4
void
(*
q
)();
5
6
void
f
() {
7
// FIXME: This seems like a bad rule.
8
p
=
static_cast
<
decltype
(
p
)>(
q
);
// expected-error {{not allowed}}
9
q
=
static_cast
<
decltype
(
q
)>(
p
);
10
}