You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
319 B
Objective-C
17 lines
319 B
Objective-C
#include "stdio.h"
|
|
#include "Test.h"
|
|
|
|
@interface T2 : Test @end
|
|
@implementation T2 @end
|
|
|
|
@compatibility_alias Foo T2;
|
|
|
|
Class alias_getClass(const char*);
|
|
|
|
int main(void)
|
|
{
|
|
assert([T2 class] == [Foo class]);
|
|
assert(objc_getClass("T2") == objc_getClass("Foo"));
|
|
assert(objc_getClass("T2") == alias_getClass("Foo"));
|
|
}
|