Douglas Gregor | e31e606 | 2012-02-07 10:09:13 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -std=c++11 %s -verify |
| 2 | |
| 3 | class NonCopyable { |
| 4 | NonCopyable(const NonCopyable&); |
| 5 | }; |
| 6 | |
| 7 | void capture_by_ref(NonCopyable nc, NonCopyable &ncr) { |
Douglas Gregor | 8c50e7c | 2012-02-09 00:47:04 +0000 | [diff] [blame^] | 8 | (void)[&nc] () -> void {}; // expected-error{{lambda expressions are not supported yet}} |
| 9 | (void)[&ncr] () -> void {}; // expected-error{{lambda expressions are not supported yet}} |
Douglas Gregor | e31e606 | 2012-02-07 10:09:13 +0000 | [diff] [blame] | 10 | } |