xref: /minix3/external/bsd/llvm/dist/clang/test/PCH/method_pool.h (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc /* For use with the method_pool.m test */
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc /* Whitespace below is significant */
4*f4a2713aSLionel Sambuc 
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc 
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc 
9*f4a2713aSLionel Sambuc 
10*f4a2713aSLionel Sambuc 
11*f4a2713aSLionel Sambuc 
12*f4a2713aSLionel Sambuc 
13*f4a2713aSLionel Sambuc 
14*f4a2713aSLionel Sambuc 
15*f4a2713aSLionel Sambuc @interface TestMethodPool1
16*f4a2713aSLionel Sambuc + alloc;
17*f4a2713aSLionel Sambuc - (double)instMethod:(int)foo;
18*f4a2713aSLionel Sambuc @end
19*f4a2713aSLionel Sambuc 
20*f4a2713aSLionel Sambuc @interface TestMethodPool2
21*f4a2713aSLionel Sambuc - (char)instMethod:(int)foo;
22*f4a2713aSLionel Sambuc @end
23*f4a2713aSLionel Sambuc 
24*f4a2713aSLionel Sambuc @implementation TestMethodPool1
25*f4a2713aSLionel Sambuc + alloc { return 0; }
26*f4a2713aSLionel Sambuc 
27*f4a2713aSLionel Sambuc - (double)instMethod:(int)foo {
28*f4a2713aSLionel Sambuc   return foo;
29*f4a2713aSLionel Sambuc }
30*f4a2713aSLionel Sambuc @end
31*f4a2713aSLionel Sambuc 
32*f4a2713aSLionel Sambuc @implementation TestMethodPool2
33*f4a2713aSLionel Sambuc - (char)instMethod:(int)foo {
34*f4a2713aSLionel Sambuc   return foo;
35*f4a2713aSLionel Sambuc }
36*f4a2713aSLionel Sambuc @end
37