blob: c4deba9c974398064a23c50908faa41a81aa864f [file] [log] [blame]
// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
class NonCopyable {
NonCopyable(const NonCopyable&);
};
void capture_by_ref(NonCopyable nc, NonCopyable &ncr) {
int array[3];
(void)[&nc] () -> void {};
(void)[&ncr] () -> void {};
(void)[&array] () -> void {};
}