Clang Project

clang_source_code/test/SemaCXX/constructor-recovery.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3struct C { // expected-note 1+{{candidate}}
4  virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
5};
6
7void f() {
8 C c; // expected-error {{no matching constructor}}
9}
10