blob: 16a7a1d0c9b975621be8ca70526f87bf17f9966f [file] [log] [blame]
Daniel Dunbar8fbe78f2009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x
Fariborz Jahanian11565482009-10-27 16:51:19 +00002
John McCall85f90552010-03-10 11:27:22 +00003struct A { // expected-error {{implicit default constructor for 'A' must explicitly initialize the const member 'i'}}
Fariborz Jahanian7ad36162009-11-03 20:38:53 +00004 const int i; // expected-note {{declared at}}
5 virtual void f() { }
Fariborz Jahanian11565482009-10-27 16:51:19 +00006};
7
8int main () {
Eli Friedman9cf6b592009-11-09 19:20:36 +00009 (void)A(); // expected-note {{first required here}}
Fariborz Jahanian11565482009-10-27 16:51:19 +000010}