aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp
blob: a02340f8b96f033749970d5338819b51d7f8c44c (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify

class NonCopyable {
  NonCopyable(const NonCopyable&);
};

void capture_by_ref(NonCopyable nc, NonCopyable &ncr) {
  [&nc] {}; // expected-error{{lambda expressions are not supported yet}}
  [&ncr] {}; // expected-error{{lambda expressions are not supported yet}}
}