blob: cbd19db1a5cd3dacfd68c794fc8405592ac92a84 [file] [log] [blame]
Douglas Gregor81b747b2009-09-17 21:32:03 +00001struct Base1 {
2 int member1;
3 float member2;
4};
5
6struct Base2 {
7 int member1;
8 double member3;
9 void memfun1(int);
10};
11
12struct Base3 : Base1, Base2 {
13 void memfun1(float);
14 void memfun1(double);
15 void memfun2(int);
16};
17
18struct Derived : Base3 {
19 int member4;
20 int memfun3(int);
21};
22
23class Proxy {
24public:
25 Derived *operator->() const;
26};
27
28void test(const Proxy &p) {
Douglas Gregorb657f112009-09-22 21:11:38 +000029 p->
30 // RUN: clang-cc -fsyntax-only -code-completion-at=%s:29:6 %s -o - | FileCheck -check-prefix=CC1 %s &&
Douglas Gregor81b747b2009-09-17 21:32:03 +000031 // CHECK-CC1: member4 : 0
32 // CHECK-CC1: memfun3 : 0
33 // CHECK-CC1: memfun1 : 1
34 // CHECK-CC1: memfun1 : 1
35 // CHECK-CC1: memfun2 : 1
36 // CHECK-CC1: member1 : 2
37 // CHECK-CC1: member1 : 2
38 // CHECK-CC1: member2 : 2
39 // CHECK-CC1: member3 : 2
Douglas Gregor456c4a12009-09-21 20:12:40 +000040 // CHECK-CC1: memfun1 : 2 (Hidden) : Base2::memfun1(<#int#>)
Douglas Gregorb657f112009-09-22 21:11:38 +000041 // RUN: true
42