diff options
Diffstat (limited to 'test/SemaObjCXX/message.mm')
-rw-r--r-- | test/SemaObjCXX/message.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/SemaObjCXX/message.mm b/test/SemaObjCXX/message.mm index 97ee499aff..b75608e232 100644 --- a/test/SemaObjCXX/message.mm +++ b/test/SemaObjCXX/message.mm @@ -84,9 +84,11 @@ struct MutableString : public String { }; // C++-specific parameter types @interface I5 -- method:(const String&)str1 other:(String&)str2; +- method:(const String&)str1 + other:(String&)str2; // expected-note{{passing argument to parameter 'str2' here}} @end void test_I5(I5 *i5, String s) { [i5 method:"hello" other:s]; + [i5 method:s other:"world"]; // expected-error{{non-const lvalue reference to type 'String' cannot bind to a value of unrelated type 'char const [6]'}} } |