/*
copyright 2004 Alexander Malmberg <alexander@malmberg.org>
*/

#include <objc/Object.h>

@interface Foo : Object
{
@public
	int foo;
}
@end
@interface Bar : Foo
{
@public
	int bar;
}
@end

@implementation Foo
@end
@implementation Bar
@end

Foo *foo;
Bar *bar;

int main(int argc, char **argv)
{
	foo=bar=[Bar alloc];
	foo->foo=1;
	bar->foo=2;
	if (foo->foo==1)
		printf("FOO!\n");

	return 0;
}

