aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjC/typo-correction.m
blob: cb2c91bb76cb8c7172c588488fc5707d52a2b866 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// RUN: %clang_cc1 %s -verify -fsyntax-only -Wspellcheck

@interface B
@property int x;
@end

@interface S : B
@end

// Spell-checking 'undefined' is ok.
undefined var; // expected-warning {{spell-checking initiated}} \
               // expected-error {{unknown type name}}

typedef int super1;
@implementation S
-(void)foo {
  // Spell-checking 'super' is not ok.
  super.x = 0;
  self.x = 0;
}
@end