blob: 7264fa18d06c5771585f4c4227282afa7c16bb5b [file] [log] [blame]
Douglas Gregore31e6062012-02-07 10:09:13 +00001// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2
3class NonCopyable {
4 NonCopyable(const NonCopyable&);
5};
6
7void capture_by_ref(NonCopyable nc, NonCopyable &ncr) {
Douglas Gregor21f46922012-02-08 20:17:14 +00008 [&nc] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
9 [&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
Douglas Gregore31e6062012-02-07 10:09:13 +000010}