blob: d6a86c4c8cb5b88d049128b2bfd1454a3683d41b [file] [log] [blame]
Shih-wei Liaof8fd82b2010-02-10 11:10:31 -08001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
2
3struct 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
8int main () {
9 (void)A(); // expected-note {{first required here}}
10}