diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2013-12-10 22:22:45 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-12-10 22:22:45 +0000 |
| commit | ddd28dc06129870e8dee6201aca18c092312722b (patch) | |
| tree | 4ac4ca9c6aacbea615afb76a2f2ac1b3efaf9085 /clang/test/SemaObjC/objcbridge-related-attribute.m | |
| parent | 002f8aa584810cf076a9bc136e16246f7226d6c6 (diff) | |
| download | bcm5719-llvm-ddd28dc06129870e8dee6201aca18c092312722b.tar.gz bcm5719-llvm-ddd28dc06129870e8dee6201aca18c092312722b.zip | |
Objective-C. Minor change to a diagnostic.
// rdar://15499111
llvm-svn: 196977
Diffstat (limited to 'clang/test/SemaObjC/objcbridge-related-attribute.m')
| -rw-r--r-- | clang/test/SemaObjC/objcbridge-related-attribute.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/SemaObjC/objcbridge-related-attribute.m b/clang/test/SemaObjC/objcbridge-related-attribute.m index a6d5e2eb97f..36a82b21c09 100644 --- a/clang/test/SemaObjC/objcbridge-related-attribute.m +++ b/clang/test/SemaObjC/objcbridge-related-attribute.m @@ -25,9 +25,9 @@ NSColor * Test1(NSTextField *textField, CGColorRef newColor) { } NSColor * Test2(NSTextField *textField, CGColorRef1 newColor) { - foo(newColor); // expected-error {{'CGColorRef1' (aka 'struct CGColor1 *') cannot be directly converted to 'NSColor *'; specify a class method in objc_bridge_related attribute for this conversion}} - textField.backgroundColor = newColor; // expected-error {{'CGColorRef1' (aka 'struct CGColor1 *') cannot be directly converted to 'NSColor *'; specify a class method in objc_bridge_related attribute for this conversion}} - return newColor; // expected-error {{'CGColorRef1' (aka 'struct CGColor1 *') cannot be directly converted to 'NSColor *'; specify a class method in objc_bridge_related attribute for this conversion}} + foo(newColor); // expected-error {{'CGColorRef1' (aka 'struct CGColor1 *') cannot be directly converted to 'NSColor *'}} + textField.backgroundColor = newColor; // expected-error {{'CGColorRef1' (aka 'struct CGColor1 *') cannot be directly converted to 'NSColor *'}} + return newColor; // expected-error {{'CGColorRef1' (aka 'struct CGColor1 *') cannot be directly converted to 'NSColor *'}} } CGColorRef Test3(NSTextField *textField, CGColorRef newColor) { @@ -36,6 +36,6 @@ CGColorRef Test3(NSTextField *textField, CGColorRef newColor) { } CGColorRef2 Test4(NSTextField *textField, CGColorRef2 newColor) { - newColor = textField.backgroundColor; // expected-error {{'NSColor *' cannot be directly converted to 'CGColorRef2' (aka 'struct CGColor2 *'); specify an instance method in objc_bridge_related attribute for this conversion}} - return textField.backgroundColor; // expected-error {{'NSColor *' cannot be directly converted to 'CGColorRef2' (aka 'struct CGColor2 *'); specify an instance method in objc_bridge_related attribute for this conversion}} + newColor = textField.backgroundColor; // expected-error {{'NSColor *' cannot be directly converted to 'CGColorRef2' (aka 'struct CGColor2 *')}} + return textField.backgroundColor; // expected-error {{'NSColor *' cannot be directly converted to 'CGColorRef2' (aka 'struct CGColor2 *')}} } |

