1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
15 #if __cplusplus >= 201103L
16 // expected-note@-2 {{copy constructor of 'Bar' is implicitly deleted because field 'foos' has an inaccessible copy constructor}}
22 Bar(): foo_count(0) { }
29 #if __cplusplus >= 201103L
30 // expected-error@-2 {{call to implicitly-deleted copy constructor of 'Bar}}
32 // expected-no-diagnostics