| 1 |
// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp |
| 2 |
// RUN: %clang_cc1 -fsyntax-only -Wno-address-of-temporary -D"id=struct objc_object *" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
| 3 |
|
| 4 |
extern "C" void *sel_registerName(const char *); |
| 5 |
|
| 6 |
typedef struct objc_class * Class; |
| 7 |
|
| 8 |
@interface Sub |
| 9 |
- (void)dealloc; |
| 10 |
@end |
| 11 |
|
| 12 |
@interface I : Sub |
| 13 |
- (void)dealloc; |
| 14 |
@end |
| 15 |
|
| 16 |
@implementation I |
| 17 |
- (void)dealloc { |
| 18 |
return; |
| 19 |
[super dealloc]; |
| 20 |
} |
| 21 |
@end |
| 22 |
|