]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/any/misc/any_cast_neg.cc
gcc/ada/ChangeLog:
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / any / misc / any_cast_neg.cc
index d8a52d719db086ed2b73b02b34988e6c164a824b..5423178ce714bdf289656ce2e3569b759fba6b66 100644 (file)
@@ -26,7 +26,7 @@ using std::any_cast;
 void test01()
 {
   const any y(1);
-  any_cast<int&>(y); // { dg-error "invalid static_cast" "" { target { *-*-* } } 461 }
+  any_cast<int&>(y); // { dg-error "invalid 'static_cast'" "" { target { *-*-* } } 461 }
   // { dg-error "Template argument must be constructible from a const value" "" { target { *-*-* } } 457 }
 }
 
@@ -40,6 +40,6 @@ void test02()
 void test03()
 {
   any y(1);
-  any_cast<int&>(std::move(y));  // { dg-error "invalid static_cast" "" { target { *-*-* } } 501 }
+  any_cast<int&>(std::move(y));  // { dg-error "invalid 'static_cast'" "" { target { *-*-* } } 501 }
   // { dg-error "Template argument must be constructible from an rvalue" "" { target { *-*-* } } 497 }
 }