ObjCPlusPlus as Objective-C classes. Really the compiler should say they have Objective-C runtime class, but we should be a little more resilient (we were refusing to find ivars in those classes before). Also added a test case. llvm-svn: 155515
20 lines
213 B
Plaintext
20 lines
213 B
Plaintext
#include <Foundation/NSObject.h>
|
|
|
|
@interface F : NSObject
|
|
@end
|
|
|
|
@implementation F
|
|
{
|
|
@public
|
|
int f;
|
|
}
|
|
|
|
@end
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
F* f = [F new];
|
|
f->f = 3;
|
|
return 0; // breakpoint 1
|
|
}
|