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