diff options
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp')
| -rw-r--r-- | test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp index 0cf01ade4313..94f8111015aa 100644 --- a/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp @@ -24,16 +24,16 @@ void test_capture(X x) {    int a;     [=]{       [&] {  -      int &x = a;  // expected-error{{binding of reference to type 'int' to a value of type 'const int' drops qualifiers}} -      int &x2 = a;  // expected-error{{binding of reference to type 'int' to a value of type 'const int' drops qualifiers}} +      int &x = a;  // expected-error{{binding value of type 'const int' to reference to type 'int' drops 'const' qualifier}} +      int &x2 = a;  // expected-error{{binding value of type 'const int' to reference to type 'int' drops 'const' qualifier}}      }();     }();     [=]{       [&a] {         [&] {  -        int &x = a;  // expected-error{{binding of reference to type 'int' to a value of type 'const int' drops qualifiers}} -        int &x2 = a;  // expected-error{{binding of reference to type 'int' to a value of type 'const int' drops qualifiers}} +        int &x = a;  // expected-error{{binding value of type 'const int' to reference to type 'int' drops 'const' qualifier}} +        int &x2 = a;  // expected-error{{binding value of type 'const int' to reference to type 'int' drops 'const' qualifier}}        }();      }();     }();  | 
