diff options
Diffstat (limited to 'clang/test/SemaCXX/decl-init-ref.cpp')
-rw-r--r-- | clang/test/SemaCXX/decl-init-ref.cpp | 2 |
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 ab743694a18..4200b169abe 100644 --- a/clang/test/SemaCXX/decl-init-ref.cpp +++ b/clang/test/SemaCXX/decl-init-ref.cpp @@ -18,7 +18,7 @@ class B : public BASE , public BASE1 extern B f(); -const int& ri = (void)0; // expected-error {{invalid initialization of reference of type 'int const &' from expression of type 'void'}} +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}} |