• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -triple i386-unknown-unknown -ast-print %s 2>&1 | FileCheck  %s
2// RUN: %clang_cc1 -triple x86_64-apple-darwin10  -ast-print %s  2>&1  | FileCheck %s
3
4@interface current
5{
6@public
7  int ivar;
8  int ivar1;
9  int ivar2;
10}
11@end
12
13current *pc;
14
15int foo()
16{
17  return pc->ivar2 + (*pc).ivar + pc->ivar1;
18}
19
20// CHECK: @interface current{
21// CHECK:     int ivar;
22// CHECK:     int ivar1;
23// CHECK:     int ivar2;
24// CHECK: }
25// CHECK: @end
26// CHECK: current *pc;
27// CHECK: int foo() {
28// CHECK:     return pc->ivar2 + (*pc).ivar + pc->ivar1;
29// CHECK: }
30
31