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.

29 lines
372 B
Objective-C

#import <stdio.h>
#import "../objc/runtime.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;
}