blob: 25d708494b1ac0cd66b85afd0ba2fe75d2f87428 [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s -std=c++0x
struct A { // expected-error {{implicit default constructor for 'struct A' must explicitly initialize the const member 'i'}}
const int i; // expected-note {{declared at}}
virtual void f() { }
};
int main () {
(void)A(); // expected-note {{first required here}}
}