Revert "Reapply "[llvm-jitlink] Use concurrent linking by default." with fixes. ...
[llvm-project.git] / clang / test / CXX / class.derived / class.abstract / p2.cpp
blob713a5269f1431ed8cc86b9f0e7c7799c420dc87e
1 // RUN: %clang_cc1 -std=c++1z -verify %s
3 // no objects of an abstract class can be created except as subobjects of a
4 // class derived from it
6 struct A {
7 A() {}
8 A(int) : A() {} // ok
10 virtual void f() = 0; // expected-note 1+{{unimplemented}}
13 void f(A &&a);
15 void g() {
16 f({}); // expected-error {{abstract class}}
17 f({0}); // expected-error {{abstract class}}
18 f(0); // expected-error {{abstract class}}
21 struct B : A {
22 B() : A() {} // ok