summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/ivar-lookup.m
blob: 644b3b638c92b88c41c890587615bc33eca945a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %clang_cc1 %s -fsyntax-only -verify

@interface Test {
   int x;
}

-(void) setX: (int) d;
@end

extern struct foo x;

@implementation Test

-(void) setX: (int) n {
   x = n;
}

@end
OpenPOWER on IntegriCloud