1*e31e606fSDouglas Gregor // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2*e31e606fSDouglas Gregor 
3*e31e606fSDouglas Gregor class NonCopyable {
4*e31e606fSDouglas Gregor   NonCopyable(const NonCopyable&); // expected-note 2 {{implicitly declared private here}}
5*e31e606fSDouglas Gregor };
6*e31e606fSDouglas Gregor 
7*e31e606fSDouglas Gregor void capture_by_copy(NonCopyable nc, NonCopyable &ncr) {
8*e31e606fSDouglas Gregor   // FIXME: error messages should talk about capture
9*e31e606fSDouglas Gregor   [nc] { }; // expected-error{{field of type 'NonCopyable' has private copy constructor}} \
10*e31e606fSDouglas Gregor              // expected-error{{lambda expressions are not supported yet}}
11*e31e606fSDouglas Gregor   [ncr] { }; // expected-error{{field of type 'NonCopyable' has private copy constructor}} \
12*e31e606fSDouglas Gregor              // expected-error{{lambda expressions are not supported yet}}
13*e31e606fSDouglas Gregor }
14*e31e606fSDouglas Gregor 
15*e31e606fSDouglas Gregor // FIXME: arrays!
16