brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 52304ea Raw
100 lines · plain
1// RUN: %clang_cc1 -triple i386-apple-darwin9 -x objective-c++ -Wno-return-type -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp2// RUN: %clang_cc1 -triple i386-apple-darwin9 -fsyntax-only -std=gnu++98 -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp3 4@interface B @end5 6@interface A {7  struct s0 {8    int f0;9    int f1;10  } f0;11  id f1;12__weak B *f2;13  int f3 : 5;14  struct s1 {15    int *f0;16    int *f1;17  } f4[2][1];18}19@end20 21@interface C : A22@property int p3;23@end24 25@implementation C26@synthesize p3 = _p3;27@end28 29@interface A()30@property int p0;31@property (assign) __strong id p1;32@property (assign) __weak id p2;33@end34 35// FIXME: Check layout for this class, once it is clear what the right36// answer is.37@implementation A38@synthesize p0 = _p0;39@synthesize p1 = _p1;40@synthesize p2 = _p2;41@end42 43@interface D : A44@property int p3;45@end46 47// FIXME: Check layout for this class, once it is clear what the right48// answer is.49@implementation D50@synthesize p3 = _p3;51@end52 53typedef unsigned short UInt16;54 55 56typedef signed char BOOL;57typedef unsigned int FSCatalogInfoBitmap;58 59@interface NSFileLocationComponent {60    @private61 62    id _specifierOrStandardizedPath;63    BOOL _carbonCatalogInfoAndNameAreValid;64    FSCatalogInfoBitmap _carbonCatalogInfoMask;65    id _name;66    id _containerComponent;67    id _presentableName;68    id _iconAsAttributedString;69}70@end71 72@implementation NSFileLocationComponent @end73 74@interface Foo {75  int bar:26;76}77@end78 79@implementation Foo80@end81 82@interface Foo1 {83  int bar:26;84  int bar2:4;85}86@end87 88@implementation Foo189@end90 91@interface Foo3 {92  int foo;93  int bar:26;94}95@end96 97@implementation Foo398@end99 100