1 // RUN: %clang_cc1 -E %s -o %t.mm
2 // RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %t.mm -o - | FileCheck %s
4 void *sel_registerName(const char *);
6 @interface NSMutableArray
7 - (void)addObject:(id)addObject;
10 @interface NSInvocation {
14 + (NSInvocation *)invocationWithMethodSignature;
18 @implementation NSInvocation
20 + (NSInvocation *)invocationWithMethodSignature {
22 id obj = newInv->_container;
23 [newInv->_container addObject:0];
28 // CHECK: id obj = (*(id *)((char *)newInv + OBJC_IVAR_$_NSInvocation$_container));
29 // CHECK: struct _class_t *superclass;
30 // CHECK: extern "C" __declspec(dllimport) struct objc_cache _objc_empty_cache;