blob: c1bb43628356e87554e25909ba59d4a2e3df09f3 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregor33297562009-03-27 04:38:56 +00002
Douglas Gregor745880f2009-12-20 22:01:25 +00003struct C {
4 virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}}
Douglas Gregor33297562009-03-27 04:38:56 +00005};
6
7void f() {
Douglas Gregor745880f2009-12-20 22:01:25 +00008 C c;
Douglas Gregor33297562009-03-27 04:38:56 +00009}