diff options
author | Richard Trieu <rtrieu@google.com> | 2015-05-16 01:27:03 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-05-16 01:27:03 +0000 |
commit | db8c6dd29c7afd198fc4c4a034547f179874656f (patch) | |
tree | c0061416267cc6ab709b0267244d27774f51152b /test/CXX/expr/expr.prim/expr.prim.lambda | |
parent | 791beb43d2f960eeeb4dc45333fe8f6ac03f821b (diff) | |
download | clang-db8c6dd29c7afd198fc4c4a034547f179874656f.tar.gz |
When emitting a dropped qualifier error, show which qualifiers are dropped.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@237505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda')
-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 0cbffe844e..3f350bdbb8 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 value of type 'const int' to reference of type 'int' drops qualifiers}} - int &x2 = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops qualifiers}} + int &x = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops 'const' qualifier}} + int &x2 = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops 'const' qualifier}} }(); }(); [=]{ [&a] { [&] { - int &x = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops qualifiers}} - int &x2 = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops qualifiers}} + int &x = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops 'const' qualifier}} + int &x2 = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops 'const' qualifier}} }(); }(); }(); |