diff options
author | Richard Trieu <rtrieu@google.com> | 2015-05-15 22:07:49 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-05-15 22:07:49 +0000 |
commit | 0ff51f39deacb0622f64e2c6100edfa87a6081b5 (patch) | |
tree | 4d360c50d741019a26436adc9dbe7155156a48e3 /clang/test/CXX/expr/expr.prim | |
parent | 3de83e4098af7e10175487d831d259108310b313 (diff) | |
download | bcm5719-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.cpp | 8 |
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}} }(); }(); }(); |