blob: 47795ca6163e5466e3c573767ef06b5d465bf68f [file] [log] [blame]
/* APPLE LOCAL file radar 5109807 - radar 5217964 */
/* Test that ivar layout bytestream info is generated as expected in the the test
extracted from AppKit */
/* { dg-do run { target *-*-darwin* } } */
/* { dg-options "-mmacosx-version-min=10.5 -framework Foundation -fobjc-gc" } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target objc_gc } */
#include <Foundation/Foundation.h>
@interface NSFileLocationComponent : NSObject {
@private
id _specifierOrStandardizedPath;
BOOL _carbonCatalogInfoAndNameAreValid;
FSCatalogInfoBitmap _carbonCatalogInfoMask;
struct FSCatalogInfo _carbonCatalogInfo;
HFSUniStr255 _carbonName;
id _name;
id _containerComponent;
id _presentableName;
id _iconAsAttributedString;
}
@end
@implementation NSFileLocationComponent @end
const char expected [] = {0x02, 0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0x14,0};
int main()
{
int i = 0;
const char *ivar_layout_string = (const char*)class_getIvarLayout([NSFileLocationComponent class]);
if (strcmp (ivar_layout_string, expected))
abort ();
return 0;
}