aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/unnamed-parms.m
blob: 22426cfed5f6e908fc439d6f31db19a552cb1ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Only needs to compile [see PR 49070 for C++ issue].  */

__attribute__((__objc_root_class__))
@interface A
- (id) :(id)arg0 :(id)arg1;
- (id) m:(id)arg0 :(id)arg1 :(id)arg2 :(id)arg3;
@end

@implementation A
- (id) :(id)arg0 :(id)arg1
{
  return arg1;
}
- (id) m:(id)arg0 :(id)arg1 :(id)arg2 :(id)arg3
{
  return arg2;
}
@end

id f1 (A *x)
{
  return [x:x:x];
}

id f2 (A *x)
{
  return [x m:x:x:x:x];
}