You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
239 B

// RUN: %clang_cc1 -fsyntax-only -verify %s
struct C { // expected-note 1+{{candidate}}
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
};
void f() {
C c; // expected-error {{no matching constructor}}
}