| 1 |
// RUN: %clang_cc1 -x objective-c++ -fblocks -fms-extensions -rewrite-objc %s -o %t-rw.cpp |
| 2 |
// RUN: %clang_cc1 -fsyntax-only -fblocks -Wno-address-of-temporary -D"Class=void*" -D"id=void*" -D"SEL=void*" -D"__declspec(X)=" %t-rw.cpp |
| 3 |
|
| 4 |
@interface Root @end |
| 5 |
|
| 6 |
@interface Super : Root |
| 7 |
@end |
| 8 |
|
| 9 |
@interface Sub : Super |
| 10 |
@end |
| 11 |
|
| 12 |
@implementation Sub @end |
| 13 |
|
| 14 |
@implementation Root @end |
| 15 |
|
| 16 |
@interface Root(Cat) @end |
| 17 |
|
| 18 |
@interface Sub(Cat) @end |
| 19 |
|
| 20 |
@implementation Root(Cat) @end |
| 21 |
|
| 22 |
@implementation Sub(Cat) @end |