diff options
Diffstat (limited to 'test/SemaObjC/undef-superclass-1.m')
-rw-r--r-- | test/SemaObjC/undef-superclass-1.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaObjC/undef-superclass-1.m b/test/SemaObjC/undef-superclass-1.m index 0d670f8c0809..cb15dc39a3dc 100644 --- a/test/SemaObjC/undef-superclass-1.m +++ b/test/SemaObjC/undef-superclass-1.m @@ -24,3 +24,10 @@ [super dealloc]; // expected-error {{no super class declared in @interface for 'SUPER'}} } @end + +@interface RecursiveClass : RecursiveClass // expected-error {{trying to recursively use 'RecursiveClass' as superclass of 'RecursiveClass'}} +@end + +@implementation RecursiveClass +@end + |