diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-07 00:22:00 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-04-07 00:22:00 +0000 |
| commit | ea7a13377571dd6ca5484ebee8258197afd76440 (patch) | |
| tree | f205c7645d6afa94bfc47527078c2dd0608df185 /clang/test/SemaObjC/method-bad-param.m | |
| parent | 636a61e0d2f5260e5f388910e4a9aef5a880ec11 (diff) | |
| download | bcm5719-llvm-ea7a13377571dd6ca5484ebee8258197afd76440.tar.gz bcm5719-llvm-ea7a13377571dd6ca5484ebee8258197afd76440.zip | |
Improve on diagnostics when an objc class is used as
a stand-alone type declaration.
llvm-svn: 100588
Diffstat (limited to 'clang/test/SemaObjC/method-bad-param.m')
| -rw-r--r-- | clang/test/SemaObjC/method-bad-param.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/test/SemaObjC/method-bad-param.m b/clang/test/SemaObjC/method-bad-param.m index c1509bf9f6f..324ed342f91 100644 --- a/clang/test/SemaObjC/method-bad-param.m +++ b/clang/test/SemaObjC/method-bad-param.m @@ -7,21 +7,21 @@ @end @interface bar --(void) my_method:(foo) my_param; // expected-error {{Objective-C interface type 'foo' cannot be passed by value}} -- (foo)cccccc:(long)ddddd; // expected-error {{Objective-C interface type 'foo' cannot be returned by value}} +-(void) my_method:(foo) my_param; // expected-error {{Objective-C interface type 'foo' cannot be passed by value; did you forget * in 'foo'}} +- (foo)cccccc:(long)ddddd; // expected-error {{Objective-C interface type 'foo' cannot be returned by value; did you forget * in 'foo'}} @end @implementation bar --(void) my_method:(foo) my_param // expected-error {{Objective-C interface type 'foo' cannot be passed by value}} +-(void) my_method:(foo) my_param // expected-error {{Objective-C interface type 'foo' cannot be passed by value; did you forget * in 'foo'}} { } -- (foo)cccccc:(long)ddddd // expected-error {{Objective-C interface type 'foo' cannot be returned by value}} +- (foo)cccccc:(long)ddddd // expected-error {{Objective-C interface type 'foo' cannot be returned by value; did you forget * in 'foo'}} { } @end -void somefunc(foo x) {} // expected-error {{Objective-C interface type 'foo' cannot be passed by value}} -foo somefunc2() {} // expected-error {{Objective-C interface type 'foo' cannot be returned by value}} +void somefunc(foo x) {} // expected-error {{Objective-C interface type 'foo' cannot be passed by value; did you forget * in 'foo'}} +foo somefunc2() {} // expected-error {{Objective-C interface type 'foo' cannot be returned by value; did you forget * in 'foo'}} // rdar://6780761 void f0(foo *a0) { |

