blob: 8e00620398076f57961373078028744e3c5b13b3 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
struct C { // expected-note {{candidate function}}
virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} \
expected-note {{candidate function}}
};
void f() {
C c; // expected-error {{call to constructor of 'c' is ambiguous}}
}
|