summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/constructor-recovery.cpp
blob: 50fdc9622e4c7ecde2869e0278f4f7c5f2515218 (plain)
1
2
3
4
5
6
7
8
9
10
// 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}}
}
OpenPOWER on IntegriCloud