2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-03-27 12:38:56 +08:00
|
|
|
|
2016-05-13 14:47:56 +08:00
|
|
|
struct C { // expected-note 1+{{candidate}}
|
2009-12-21 06:01:25 +08:00
|
|
|
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
|
2009-03-27 12:38:56 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
void f() {
|
2016-05-13 14:47:56 +08:00
|
|
|
C c; // expected-error {{no matching constructor}}
|
2009-03-27 12:38:56 +08:00
|
|
|
}
|