Delete unused PoisonChecking utility pass
[llvm-project.git] / clang / test / CXX / class.derived / class.abstract / p5.cpp
blobcdff9312234458a2d31925d9689ec435d094518d
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 struct A {
4 virtual void f() = 0; // expected-note{{unimplemented pure virtual method}}
5 };
7 struct B : A {
8 virtual void f();
9 };
11 struct C : B {
12 virtual void f() = 0; // expected-note 2{{unimplemented pure virtual method}}
15 struct D : C {
18 void test() {
19 (void)new A; // expected-error{{abstract class}}
20 (void)new B;
21 (void)new C; // expected-error{{abstract class}}
22 (void)new D; // expected-error{{abstract class}}