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 | f956a49e6da306c9ec3ac805822035043626481c (patch) | |
tree | add6aaebf96b5a5347c6b45c2a4f599b07ec4041 /clang/test/SemaCXX/references.cpp | |
parent | bb642e54564a605c71f4ee9a57e9ed430ac8f68f (diff) | |
download | bcm5719-llvm-f956a49e6da306c9ec3ac805822035043626481c.tar.gz bcm5719-llvm-f956a49e6da306c9ec3ac805822035043626481c.zip |
When emitting a dropped qualifier error, show which qualifiers are dropped.
llvm-svn: 237505
Diffstat (limited to 'clang/test/SemaCXX/references.cpp')
-rw-r--r-- | clang/test/SemaCXX/references.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/references.cpp b/clang/test/SemaCXX/references.cpp index 64d87bd132b..aae4930593a 100644 --- a/clang/test/SemaCXX/references.cpp +++ b/clang/test/SemaCXX/references.cpp @@ -54,7 +54,7 @@ void test4() { void test5() { // const double& rcd2 = 2; // rcd2 refers to temporary with value 2.0 const volatile int cvi = 1; - const int& r = cvi; // expected-error{{binding value of type 'const volatile int' to reference of type 'const int' drops qualifiers}} + const int& r = cvi; // expected-error{{binding value of type 'const volatile int' to reference of type 'const int' drops 'volatile' qualifier}} } // C++ [dcl.init.ref]p3 |