summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2015-05-15 22:07:49 +0000
committerRichard Trieu <rtrieu@google.com>2015-05-15 22:07:49 +0000
commit0ff51f39deacb0622f64e2c6100edfa87a6081b5 (patch)
tree4d360c50d741019a26436adc9dbe7155156a48e3 /clang/test/CXX/expr/expr.prim
parent3de83e4098af7e10175487d831d259108310b313 (diff)
downloadbcm5719-llvm-0ff51f39deacb0622f64e2c6100edfa87a6081b5.tar.gz
bcm5719-llvm-0ff51f39deacb0622f64e2c6100edfa87a6081b5.zip
Reverse the order of types in the reference dropping qualifiers error.
The error has the form ... 'int' ... 'const int' ... dropped qualifiers. At first glance, it appears that the const qualifier is added. Reverse the types so that the second type is less qualified than the first. llvm-svn: 237482
Diffstat (limited to 'clang/test/CXX/expr/expr.prim')
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp
index 0cf01ade431..0cbffe844e7 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p16.cpp
+++ b/clang/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 of type 'int' drops qualifiers}}
+ int &x2 = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops qualifiers}}
}();
}();
[=]{
[&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 of type 'int' drops qualifiers}}
+ int &x2 = a; // expected-error{{binding value of type 'const int' to reference of type 'int' drops qualifiers}}
}();
}();
}();
OpenPOWER on IntegriCloud