parent
695282e5d7
commit
4fd27a066f
@ -0,0 +1,30 @@
|
||||
#import <stdio.h>
|
||||
#import "../objc/objc.h"
|
||||
#import "../objc/runtime.h"
|
||||
#import "../objc/Object.h"
|
||||
#include "Test.h"
|
||||
|
||||
#import <sys/types.h>
|
||||
#import <sys/stat.h>
|
||||
|
||||
@interface Dummy : Test
|
||||
{
|
||||
id objOne;
|
||||
struct stat statBuf;
|
||||
BOOL flagOne;
|
||||
}
|
||||
@end
|
||||
|
||||
@implementation Dummy
|
||||
- (void)test
|
||||
{
|
||||
assert((char*)&statBuf+sizeof(struct stat) <= (char*)&flagOne);
|
||||
}
|
||||
@end
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
[[Dummy new] test];
|
||||
return 0;
|
||||
}
|
||||
Loading…
Reference in New Issue