]> granicus.if.org Git - clang/commitdiff
Updating the test case based on previous patch
authorAaron Ballman <aaron@aaronballman.com>
Mon, 7 May 2012 01:10:33 +0000 (01:10 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 7 May 2012 01:10:33 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156275 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/virtuals.cpp

index ea7d203ca70f6c972cd5a415800ba125e9577e28..a340e9d86b65ad5b95328f09a8fbf87b02eeb09a 100644 (file)
@@ -30,7 +30,7 @@ A fn(A) // expected-error{{parameter type 'A' is an abstract class}} \
         // 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}}
   }