[cfe-commits] r156275 - /cfe/trunk/test/SemaCXX/virtuals.cpp

Aaron Ballman aaron at aaronballman.com
Sun May 6 18:10:33 PDT 2012


Author: aaronballman
Date: Sun May  6 20:10:33 2012
New Revision: 156275

URL: http://llvm.org/viewvc/llvm-project?rev=156275&view=rev
Log:
Updating the test case based on previous patch

Modified:
    cfe/trunk/test/SemaCXX/virtuals.cpp

Modified: cfe/trunk/test/SemaCXX/virtuals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/virtuals.cpp?rev=156275&r1=156274&r2=156275&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/virtuals.cpp (original)
+++ cfe/trunk/test/SemaCXX/virtuals.cpp Sun May  6 20:10:33 2012
@@ -30,7 +30,7 @@
         // expected-error{{return type 'A' is an abstract class}}
 {
   A a; // expected-error{{variable type 'A' is an abstract class}}
-  (void)static_cast<A>(0);
+  (void)static_cast<A>(0); // expected-error{{allocating an object of abstract class type 'A'}}
   try {
   } catch(A) { // expected-error{{variable type 'A' is an abstract class}}
   }





More information about the cfe-commits mailing list