Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -rewrite-objc %s -o - | grep objc_msgSendSuper | grep MainMethod |
Fariborz Jahanian | 7127431 | 2007-12-05 17:29:46 +0000 | [diff] [blame] | 2 | |
Steve Naroff | 46a98a7 | 2008-12-23 20:11:22 +0000 | [diff] [blame] | 3 | typedef struct objc_selector *SEL; |
| 4 | typedef struct objc_object *id; |
| 5 | |
Fariborz Jahanian | 7127431 | 2007-12-05 17:29:46 +0000 | [diff] [blame] | 6 | @interface SUPER |
| 7 | - (int) MainMethod; |
| 8 | @end |
| 9 | |
| 10 | @interface MyDerived : SUPER |
| 11 | - (int) instanceMethod; |
| 12 | @end |
| 13 | |
| 14 | @implementation MyDerived |
| 15 | - (int) instanceMethod { |
| 16 | return [super MainMethod]; |
| 17 | } |
| 18 | @end |