Douglas Gregor 21f4692c62 When completing a lambda expression, make sure to check and attach the
body of the lambda to the function call operator.

llvm-svn: 150087
2012-02-08 20:17:14 +00:00

11 lines
344 B
C++

// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
class NonCopyable {
NonCopyable(const NonCopyable&);
};
void capture_by_ref(NonCopyable nc, NonCopyable &ncr) {
[&nc] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
[&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
}