Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
| 2 | |
Douglas Gregor | fd47648 | 2009-11-13 23:59:09 +0000 | [diff] [blame] | 3 | struct C { // expected-note {{candidate function}} |
| 4 | virtual C() = 0; // expected-error{{constructor cannot be declared 'virtual'}} \ |
| 5 | expected-note {{candidate function}} |
Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 6 | }; |
| 7 | |
| 8 | void f() { |
Douglas Gregor | fd47648 | 2009-11-13 23:59:09 +0000 | [diff] [blame] | 9 | C c; // expected-error {{call to constructor of 'c' is ambiguous}} |
Douglas Gregor | 3329756 | 2009-03-27 04:38:56 +0000 | [diff] [blame] | 10 | } |