aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/references.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/references.cpp')
-rw-r--r--test/SemaCXX/references.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/SemaCXX/references.cpp b/test/SemaCXX/references.cpp
index a7aafe41c392..ab44e78453b2 100644
--- a/test/SemaCXX/references.cpp
+++ b/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 of reference to type 'int const' to a value of type 'int const volatile' drops qualifiers}}
+ const int& r = cvi; // expected-error{{binding of reference to type 'const int' to a value of type 'const volatile int' drops qualifiers}}
}
// C++ [dcl.init.ref]p3
@@ -130,3 +130,7 @@ namespace PR7149 {
X0< const int[1]> c(p1);
}
}
+
+namespace PR8608 {
+ bool& f(unsigned char& c) { return (bool&)c; }
+}