1 // RUN: %clang_cc1 -std=c++11 %s -verify
2 
3 class X0 {
4   void explicit_capture() {
5     int foo;
6 
7     [foo, foo] () {}; // expected-error {{'foo' can appear only once}} expected-error {{not supported yet}}
8     [this, this] () {}; // expected-error {{'this' can appear only once}} expected-error {{not supported yet}}
9     [=, foo] () {}; // expected-error {{'&' must precede a capture when}} expected-error {{not supported yet}}
10     [=, &foo] () {}; // expected-error {{not supported yet}}
11     [=, this] () {}; // expected-error {{'this' cannot appear}} expected-error {{not supported yet}}
12     [&, foo] () {}; // expected-error {{not supported yet}}
13     [&, &foo] () {}; // expected-error {{'&' cannot precede a capture when}} expected-error {{not supported yet}}
14     [&, this] () {}; // expected-error {{not supported yet}}
15   }
16 };
17