Shih-wei Liao | f8fd82b | 2010-02-10 11:10:31 -0800 | [diff] [blame^] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x |
2 | |||||
3 | struct A { // expected-error {{implicit default constructor for 'struct A' must explicitly initialize the const member 'i'}} | ||||
4 | const int i; // expected-note {{declared at}} | ||||
5 | virtual void f() { } | ||||
6 | }; | ||||
7 | |||||
8 | int main () { | ||||
9 | (void)A(); // expected-note {{first required here}} | ||||
10 | } |