summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p15.cpp
blob: 7264fa18d06c5771585f4c4227282afa7c16bb5b (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] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
  [&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
}
OpenPOWER on IntegriCloud