Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
2 | |||||
Douglas Gregor | cad84b7 | 2009-11-13 23:14:53 +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 | cad84b7 | 2009-11-13 23:14:53 +0000 | [diff] [blame] | 8 | C c; |
Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 9 | } |