1/* Only needs to compile [see PR 49070 for C++ issue].  */
2
3#if __has_attribute(__objc_root_class__)
4__attribute__((__objc_root_class__))
5#endif
6@interface A
7- (id) :(id)arg0 :(id)arg1;
8- (id) m:(id)arg0 :(id)arg1 :(id)arg2 :(id)arg3;
9@end
10
11@implementation A
12- (id) :(id)arg0 :(id)arg1
13{
14  return arg1;
15}
16- (id) m:(id)arg0 :(id)arg1 :(id)arg2 :(id)arg3
17{
18  return arg2;
19}
20@end
21
22id f1 (A *x)
23{
24  return [x:x:x];
25}
26
27id f2 (A *x)
28{
29  return [x m:x:x:x:x];
30}
31