blob: e17d8b5101a1d876c51d8179484bc3709d4a968d [file] [log] [blame]
Douglas Gregore31e6062012-02-07 10:09:13 +00001// RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify
2
3class NonCopyable {
4 NonCopyable(const NonCopyable&);
5};
6
7void capture_by_ref(NonCopyable nc, NonCopyable &ncr) {
Douglas Gregor8c50e7c2012-02-09 00:47:04 +00008 (void)[&nc] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
9 (void)[&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}}
Douglas Gregore31e6062012-02-07 10:09:13 +000010}