зеркало из https://github.com/microsoft/clang-1.git
11 строки
323 B
C++
11 строки
323 B
C++
// RUN: clang-cc -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}}
|
|
}
|