blob: 19be03af8f4619b2543562ce12939aa176255140 [file] [log] [blame]
Richard Smith762bb9d2011-10-13 22:29:44 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
Fariborz Jahanian6c813e12009-10-27 16:51:19 +00002
Sean Hunte3406822011-05-20 21:43:47 +00003struct A { //expected-note {{marked deleted here}} \
4 // expected-warning {{does not declare any constructor to initialize}}
5 const int i; // expected-note{{const member 'i' will never be initialized}}
Fariborz Jahanian6f269202009-11-03 20:38:53 +00006 virtual void f() { }
Fariborz Jahanian6c813e12009-10-27 16:51:19 +00007};
8
9int main () {
Sean Hunte3406822011-05-20 21:43:47 +000010 (void)A(); // expected-error {{call to deleted constructor}}
Fariborz Jahanian6c813e12009-10-27 16:51:19 +000011}