1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2 // expected-no-diagnostics
5 NonCopyable(const NonCopyable
&);
8 void capture_by_ref(NonCopyable nc
, NonCopyable
&ncr
) {
10 (void)[&nc
] () -> void {};
11 (void)[&ncr
] () -> void {};
12 (void)[&array
] () -> void {};