summaryrefslogtreecommitdiffstats
path: root/clang/test/Misc/diag-template-diffing.cpp
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/Misc/diag-template-diffing.cpp
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/Misc/diag-template-diffing.cpp')
-rw-r--r--clang/test/Misc/diag-template-diffing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Misc/diag-template-diffing.cpp b/clang/test/Misc/diag-template-diffing.cpp
index 0f2edfb6354..367de4b8a74 100644
--- a/clang/test/Misc/diag-template-diffing.cpp
+++ b/clang/test/Misc/diag-template-diffing.cpp
@@ -1258,7 +1258,7 @@ using T = condition<(is_const())>;
void foo(const T &t) {
T &t2 = t;
}
-// CHECK-ELIDE-NOTREE: binding of reference to type 'condition<[...]>' to a value of type 'const condition<[...]>' drops qualifiers
+// CHECK-ELIDE-NOTREE: binding value of type 'const condition<[...]>' to reference of type 'condition<[...]>' drops qualifiers
}
namespace BoolArgumentBitExtended {
OpenPOWER on IntegriCloud