From a27ea057c42858dabf791412e307f2f94207eb2b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 3 Jan 2011 18:11:46 +0900 Subject: [PATCH] Add a test for calling class methods. --- tools/qfcc/test/class-method.r | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 tools/qfcc/test/class-method.r diff --git a/tools/qfcc/test/class-method.r b/tools/qfcc/test/class-method.r new file mode 100644 index 000000000..25183546e --- /dev/null +++ b/tools/qfcc/test/class-method.r @@ -0,0 +1,30 @@ +@interface nack ++arg; +-bla; +@end + +@interface foo : nack ++bar; ++baz; +-snafu; +@end + +@implementation foo + ++bar +{ + [self bla]; + return [self baz]; +} + ++baz +{ + return [self snafu]; +} + +-snafu +{ + [self baz]; + return [self snafu]; +} +@end