Douglas Gregor | 81b747b | 2009-09-17 21:32:03 +0000 | [diff] [blame] | 1 | struct Base1 { |
| 2 | int member1; |
| 3 | float member2; |
| 4 | }; |
| 5 | |
| 6 | struct Base2 { |
| 7 | int member1; |
| 8 | double member3; |
| 9 | void memfun1(int); |
| 10 | }; |
| 11 | |
| 12 | struct Base3 : Base1, Base2 { |
| 13 | void memfun1(float); |
Douglas Gregor | a61a879 | 2009-12-11 18:44:16 +0000 | [diff] [blame^] | 14 | void memfun1(double) const; |
Douglas Gregor | 81b747b | 2009-09-17 21:32:03 +0000 | [diff] [blame] | 15 | void memfun2(int); |
| 16 | }; |
| 17 | |
| 18 | struct Derived : Base3 { |
| 19 | int member4; |
| 20 | int memfun3(int); |
| 21 | }; |
| 22 | |
| 23 | class Proxy { |
| 24 | public: |
| 25 | Derived *operator->() const; |
| 26 | }; |
| 27 | |
| 28 | void test(const Proxy &p) { |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 29 | p-> |
Daniel Dunbar | 4fcfde4 | 2009-11-08 01:45:36 +0000 | [diff] [blame] | 30 | // RUN: clang-cc -fsyntax-only -code-completion-at=%s:29:6 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s |
Douglas Gregor | 0563c26 | 2009-09-22 23:15:58 +0000 | [diff] [blame] | 31 | // CHECK-CC1: member1 : 0 : [#Base1::#]member1 |
| 32 | // CHECK-CC1: member1 : 0 : [#Base2::#]member1 |
| 33 | // CHECK-CC1: member2 : 0 : [#Base1::#]member2 |
| 34 | // CHECK-CC1: member3 : 0 |
Douglas Gregor | 81b747b | 2009-09-17 21:32:03 +0000 | [diff] [blame] | 35 | // CHECK-CC1: member4 : 0 |
Douglas Gregor | 0563c26 | 2009-09-22 23:15:58 +0000 | [diff] [blame] | 36 | // CHECK-CC1: memfun1 : 0 : [#Base3::#]memfun1(<#float#>) |
Douglas Gregor | a61a879 | 2009-12-11 18:44:16 +0000 | [diff] [blame^] | 37 | // CHECK-CC1: memfun1 : 0 : [#Base3::#]memfun1(<#double#>)[# const#] |
Douglas Gregor | 0563c26 | 2009-09-22 23:15:58 +0000 | [diff] [blame] | 38 | // CHECK-CC1: memfun2 : 0 : [#Base3::#]memfun2(<#int#>) |
| 39 | // CHECK-CC1: memfun3 : 0 : memfun3(<#int#>) |
| 40 | // CHECK-CC1: memfun1 : 0 (Hidden) : Base2::memfun1(<#int#>) |
Douglas Gregor | 7628294 | 2009-12-11 17:31:05 +0000 | [diff] [blame] | 41 | // CHECK-CC1: Base1 : 3 : Base1:: |
Douglas Gregor | b657f11 | 2009-09-22 21:11:38 +0000 | [diff] [blame] | 42 | |