Blame tests/upstream-test-suite/011_category.m

Than Ngo b7bcaa
// objective: test the \interface and \category command
Than Ngo b7bcaa
// check: category_integer_07_arithmetic_08.xml
Than Ngo b7bcaa
// check: interface_integer.xml
Than Ngo b7bcaa
# import <objc/Object.h>
Than Ngo b7bcaa
 
Than Ngo b7bcaa
@interface Integer : Object {
Than Ngo b7bcaa
 /** data member */
Than Ngo b7bcaa
 int integer;
Than Ngo b7bcaa
}
Than Ngo b7bcaa
 
Than Ngo b7bcaa
/** getter */
Than Ngo b7bcaa
- (int) integer;
Than Ngo b7bcaa
/** setter */
Than Ngo b7bcaa
- (id) integer: (int) _integer;
Than Ngo b7bcaa
@end
Than Ngo b7bcaa
Than Ngo b7bcaa
@interface Integer (Arithmetic)
Than Ngo b7bcaa
/** add operation */
Than Ngo b7bcaa
- (id) add: (Integer *) addend;
Than Ngo b7bcaa
/** subtract operation */
Than Ngo b7bcaa
- (id) sub: (Integer *) subtrahend;
Than Ngo b7bcaa
@end
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \interface Integer
Than Ngo b7bcaa
 *  An interface 
Than Ngo b7bcaa
 */
Than Ngo b7bcaa
Than Ngo b7bcaa
/** \category Integer(Arithmetic)
Than Ngo b7bcaa
 *  A category
Than Ngo b7bcaa
 */