diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-17 23:24:36 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2012-09-17 23:24:36 +0000 |
commit | 8439c78fa5a17a0f7f94e585b65c81dc37092a8e (patch) | |
tree | d451c5fe83aac9850a1d2820bffdb7835da641a2 | |
parent | 8038ceb7313a207b8060df9ac9e0deb64434253c (diff) | |
download | bcm5719-llvm-8439c78fa5a17a0f7f94e585b65c81dc37092a8e.tar.gz bcm5719-llvm-8439c78fa5a17a0f7f94e585b65c81dc37092a8e.zip |
objective-C: add Doug's test for my last patch.
llvm-svn: 164079
-rw-r--r-- | clang/test/SemaObjC/warning-missing-selector-name.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/SemaObjC/warning-missing-selector-name.m b/clang/test/SemaObjC/warning-missing-selector-name.m index 095702343fa..d43031eee0b 100644 --- a/clang/test/SemaObjC/warning-missing-selector-name.m +++ b/clang/test/SemaObjC/warning-missing-selector-name.m @@ -12,9 +12,14 @@ -(void) Name1:(id)Arg1 Name2:(id) Name3:(id)Arg3; // expected-warning {{'Name3' used as the name of the previous parameter rather than as part of the selector}} \ // expected-note {{introduce a parameter name to make 'Name3' part of the selector}} \ // expected-note {{or insert whitespace before ':' to use 'Name3' as parameter name and have an empty entry in the selector}} +- method:(id) second:(id)second; // expected-warning {{'second' used as the name of the previous parameter rather than as part of the selector}} \ + // expected-note {{introduce a parameter name to make 'second' part of the selector}} \ + // expected-note {{or insert whitespace before ':' to use 'second' as parameter name and have an empty entry in the selector}} \ + // expected-note {{method definition for 'method::' not found}} + @end -@implementation INTF +@implementation INTF // expected-warning {{incomplete implementation}} -(void) Name1:(id)Arg1 Name2:(id)Arg2{} -(void) Name1:(id) Name2:(id)Arg2 {} // expected-warning {{'Name2' used as the name of the previous parameter rather than as part of the selector}} \ // expected-note {{introduce a parameter name to make 'Name2' part of the selector}} \ @@ -23,4 +28,5 @@ -(void) Name1:(id)Arg1 Name2:(id) Name3:(id)Arg3 {} // expected-warning {{'Name3' used as the name of the previous parameter rather than as part of the selector}} \ // expected-note {{introduce a parameter name to make 'Name3' part of the selector}} \ // expected-note {{or insert whitespace before ':' to use 'Name3' as parameter name and have an empty entry in the selector}} +- method:(id)first second:(id)second {return 0; } @end |