We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e0b2b6 commit 28c819cCopy full SHA for 28c819c
clang/test/AST/ByteCode/cxx2a.cpp
@@ -139,8 +139,8 @@ namespace TypeId {
139
static_assert(&B2().ti1 == &typeid(B));
140
static_assert(&B2().ti2 == &typeid(B2));
141
extern B2 extern_b2;
142
- static_assert(&typeid(extern_b2) == &typeid(B2)); // both-error {{constant expression}} \
143
- // both-note{{typeid applied to object 'extern_b2' whose dynamic type is not constant}}
+ static_assert(&typeid(extern_b2) == &typeid(B2)); // expected-error {{constant expression}} \
+ // expected-note{{typeid applied to object 'extern_b2' whose dynamic type is not constant}}
144
145
146
constexpr B2 b2;
0 commit comments