aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/multiple-method-names.m
blob: 9fd83b208ab7971bcc4a1f09b996d2522572e09b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_cc1 -Wobjc-multiple-method-names -x objective-c %s -verify
// PR22047

@interface Face0
- (void)foo:(float)i; // expected-note {{using}}
@end

@interface Face1
- (void)foo:(int)i __attribute__((unavailable));
@end

@interface Face2
- (void)foo:(char)i; // expected-note {{also found}}
@end

void f(id i) {
  [i foo:4.0f]; // expected-warning {{multiple methods named 'foo:' found}}
}