Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 %s -verify -fsyntax-only
      2 
      3 @interface B
      4 @property int x;
      5 @end
      6 
      7 @interface S : B
      8 @end
      9 
     10 // Spell-checking 'undefined' is ok.
     11 undefined var; // expected-error {{unknown type name}}
     12 
     13 typedef int super1;
     14 @implementation S
     15 -(void)foo {
     16   // Spell-checking 'super' is not ok.
     17   super.x = 0;
     18   self.x = 0;
     19 }
     20 @end
     21