Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 %s -verify -fsyntax-only -fwarn-on-spellcheck
      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-warning {{spell-checking initiated}} \
     12                // expected-error {{unknown type name}}
     13 
     14 typedef int super1;
     15 @implementation S
     16 -(void)foo {
     17   // Spell-checking 'super' is not ok.
     18   super.x = 0;
     19   self.x = 0;
     20 }
     21 @end
     22