Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.mike / p3538b.C
blobe9fcb0cba01ba2aeb0a2e969b268768578ce9116
1 // { dg-do assemble  }
2 // prms-id: 3538
4 // This tests for an ambiguous conversion of the this pointer (going
5 // down to DECL_CONTEXT of a FUNCTION_DECL.
7 class ccObjectInfo
9 public:
10     virtual const ccObjectInfo& repInvariant (int);
13 template<class T>
14 class ccHandle : public  ccObjectInfo
16 protected:
17   T* p;
18 public:
19   virtual const ccObjectInfo& repInvariant (int);
22 template <class T>
23 const ccObjectInfo& ccHandle<T>::repInvariant (int)
24 { return p->repInvariant(1); }
26 class ccHandleBase : public ccObjectInfo
27 {};
29 class cc_CircleHdl : public virtual ccHandleBase, public ccObjectInfo
30 {                               // { dg-warning "" } 
31 public:
32   virtual const ccObjectInfo& repInvariant (int);
35 class ccCircleHdl : public ccHandle <cc_CircleHdl> {};