diff options
Diffstat (limited to 'test/SemaCXX/ref-init-ambiguous.cpp')
-rw-r--r-- | test/SemaCXX/ref-init-ambiguous.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/SemaCXX/ref-init-ambiguous.cpp b/test/SemaCXX/ref-init-ambiguous.cpp index a8e95a3..752a348 100644 --- a/test/SemaCXX/ref-init-ambiguous.cpp +++ b/test/SemaCXX/ref-init-ambiguous.cpp @@ -14,15 +14,15 @@ struct C : B, A { }; void test(C c) { - const E2 &e2 = c; // expected-error {{reference initialization of type 'E2 const &' with initializer of type 'C' is ambiguous}} + const E2 &e2 = c; // expected-error {{reference initialization of type 'const E2 &' with initializer of type 'C' is ambiguous}} } void foo(const E2 &);// expected-note{{passing argument to parameter here}} const E2 & re(C c) { - foo(c); // expected-error {{reference initialization of type 'E2 const &' with initializer of type 'C' is ambiguous}} + foo(c); // expected-error {{reference initialization of type 'const E2 &' with initializer of type 'C' is ambiguous}} - return c; // expected-error {{reference initialization of type 'E2 const &' with initializer of type 'C' is ambiguous}} + return c; // expected-error {{reference initialization of type 'const E2 &' with initializer of type 'C' is ambiguous}} } |