Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 2 | |
Douglas Gregor | 745880f | 2009-12-20 22:01:25 +0000 | [diff] [blame] | 3 | struct C { |
4 | virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} | ||||
Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 5 | }; |
6 | |||||
7 | void f() { | ||||
Douglas Gregor | 745880f | 2009-12-20 22:01:25 +0000 | [diff] [blame] | 8 | C c; |
Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 9 | } |