summaryrefslogtreecommitdiff
path: root/test/SemaCXX/no-rtti.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/no-rtti.cpp')
-rw-r--r--test/SemaCXX/no-rtti.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/no-rtti.cpp b/test/SemaCXX/no-rtti.cpp
index a171b3cde2c36..e0b57153c24c9 100644
--- a/test/SemaCXX/no-rtti.cpp
+++ b/test/SemaCXX/no-rtti.cpp
@@ -6,7 +6,7 @@ namespace std {
void f()
{
- (void)typeid(int); // expected-error {{cannot use typeid with -fno-rtti}}
+ (void)typeid(int); // expected-error {{use of typeid requires -frtti}}
}
namespace {
@@ -20,7 +20,7 @@ struct B : public A {
}
bool isa_B(A *a) {
- return dynamic_cast<B *>(a) != 0; // expected-error {{cannot use dynamic_cast with -fno-rtti}}
+ return dynamic_cast<B *>(a) != 0; // expected-error {{use of dynamic_cast requires -frtti}}
}
void* getMostDerived(A* a) {