summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/decl-init-ref.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/decl-init-ref.cpp')
-rw-r--r--clang/test/SemaCXX/decl-init-ref.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/decl-init-ref.cpp b/clang/test/SemaCXX/decl-init-ref.cpp
index 4200b169abe..294543f495d 100644
--- a/clang/test/SemaCXX/decl-init-ref.cpp
+++ b/clang/test/SemaCXX/decl-init-ref.cpp
@@ -21,6 +21,6 @@ extern B f();
const int& ri = (void)0; // expected-error {{reference to type 'int const' could not bind to an rvalue of type 'void'}}
int main() {
- const A& rca = f(); // expected-error {{conversion from 'class B' to 'struct A const' is ambiguous}}
+ const A& rca = f(); // expected-error {{reference initialization of type 'struct A const &' with initializer of type 'class B' is ambiguous}}
A& ra = f(); // expected-error {{non-const lvalue reference to type 'struct A' cannot bind to a temporary of type 'class B'}}
}
OpenPOWER on IntegriCloud