diff options
Diffstat (limited to 'test/SemaCXX/references.cpp')
-rw-r--r-- | test/SemaCXX/references.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/references.cpp b/test/SemaCXX/references.cpp index 61e30b584d..8ee7745b92 100644 --- a/test/SemaCXX/references.cpp +++ b/test/SemaCXX/references.cpp @@ -44,9 +44,9 @@ B fB(); // C++ [dcl.init.ref]p5b2 void test4() { - double& rd2 = 2.0; // expected-error{{non-const reference to type 'double' cannot be initialized with a temporary of type 'double'}} + double& rd2 = 2.0; // expected-error{{non-const lvalue reference to type 'double' cannot be initialized with a temporary of type 'double'}} int i = 2; - double& rd3 = i; // expected-error{{non-const reference to type 'double' cannot be initialized with a value of type 'int'}} + double& rd3 = i; // expected-error{{non-const lvalue reference to type 'double' cannot be initialized with a value of type 'int'}} const A& rca = fB(); } |