diff options
Diffstat (limited to 'test/Rewriter/objc-super-test.m')
-rw-r--r-- | test/Rewriter/objc-super-test.m | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Rewriter/objc-super-test.m b/test/Rewriter/objc-super-test.m new file mode 100644 index 0000000..500933d --- /dev/null +++ b/test/Rewriter/objc-super-test.m @@ -0,0 +1,18 @@ +// RUN: clang-cc -rewrite-objc %s -o - | grep objc_msgSendSuper | grep MainMethod + +typedef struct objc_selector *SEL; +typedef struct objc_object *id; + +@interface SUPER +- (int) MainMethod; +@end + +@interface MyDerived : SUPER +- (int) instanceMethod; +@end + +@implementation MyDerived +- (int) instanceMethod { + return [super MainMethod]; +} +@end |