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
5 // <rdar://problem/10228639>
16 #if __cplusplus >= 201103L
17 // expected-note@-2 {{copy constructor of 'Bar' is implicitly deleted because field 'foos' has an inaccessible copy constructor}}
23 Bar(): foo_count(0) { }
30 #if __cplusplus >= 201103L
31 // expected-error@-2 {{call to implicitly-deleted copy constructor of 'Bar}}
33 // expected-no-diagnostics