llvm-project/clang/test/SemaObjC/static-ivar-ref-1.m

17 lines
169 B
Objective-C

// RUN: clang -ast-print %s
@interface current
{
int ivar;
int ivar1;
int ivar2;
}
@end
current *pc;
int foo()
{
return pc->ivar2 + (*pc).ivar + pc->ivar1;
}