summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constructor-recovery.cpp
blob: f2f9f43a10d4aeb4f9341f5233df4304b2afdef0 (plain)
1
2
3
4
5
6
7
8
9
// RUN: clang-cc -fsyntax-only -verify %s

struct C {
  virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
};

void f() {
 C c;
}
OpenPOWER on IntegriCloud