classgetclass.m   [plain text]


// TEST_CFLAGS -framework Foundation

#include "test.h"
#include <objc/objc-runtime.h>
#include <objc/objc-gdb.h>
#import <Foundation/Foundation.h>

@interface Foo:NSObject
@end
@implementation Foo
@end

int main()
{
#if __OBJC2__
    testassert(gdb_class_getClass([Foo class]) == [Foo class]);
#endif

    succeed(__FILE__);
}