diff options
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp')
-rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp index 9df0f64ad3..74003431c6 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp @@ -15,13 +15,13 @@ void test_quals() { // This function call operator is declared const (9.3.1) if and only // if the lambda- expression's parameter-declaration-clause is not // followed by mutable. - auto l = [](){}; // expected-note{{method is not marked volatile}} + auto l = [=](){}; // expected-note{{method is not marked volatile}} const decltype(l) lc = l; l(); lc(); - auto ml = []() mutable{}; // expected-note{{method is not marked const}} \ - // expected-note{{method is not marked volatile}} + auto ml = [=]() mutable{}; // expected-note{{method is not marked const}} \ + // expected-note{{method is not marked volatile}} const decltype(ml) mlc = ml; ml(); mlc(); // expected-error{{no matching function for call to object of type}} |