summaryrefslogtreecommitdiffstats
path: root/test/SemaObjC/static-ivar-ref-1.m
blob: 3c37e9e830265c0261acd4a933560f4716be1cba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: clang-cc -ast-print %s

@interface current 
{
@public
  int ivar;
  int ivar1;
  int ivar2;
}
@end

current *pc;

int foo()
{
	return pc->ivar2 + (*pc).ivar + pc->ivar1;
}
OpenPOWER on IntegriCloud