Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.brendan / cvt3.C
blob8b253a10a1472e25599c5d5c879a5d72cdcef08b
1 // { dg-do assemble  }
2 // GROUPS passed conversions
3 class GttObject {};
4 class GctObject: virtual public GttObject {};
5 class NDAMObject: virtual public GttObject, virtual public GctObject {};
6 class GctHashObject: virtual public GctObject {};
8 class GctRef: virtual public GctHashObject
9 { public: operator void*() const; };
11 class NDAMAssemblerObject: virtual public NDAMObject {};
12 class GctReferenceObject: virtual public GctHashObject {};
13 class NDAMValue: virtual public NDAMAssemblerObject, public GctReferenceObject {};
15 class nnyacc;
16 class NDAMValueRef : virtual public NDAMObject, public GctRef 
18   NDAMValue *operator->() const;         
19   operator NDAMValue *() const;  
20 friend class nnyacc;
23 typedef void* Pix;
24 class NDAMValueRefSLList
26 public:
27   NDAMValueRefSLList();
28   NDAMValueRefSLList(const NDAMValueRefSLList& a);
29   ~NDAMValueRefSLList();
30   NDAMValueRef& operator () (Pix p) const;
33 struct bar
35   NDAMValueRefSLList *valueList;
38 class nnyacc
40 public:
41       static void assign(void*& lval, void*& rval); // { dg-message "nnyacc::assign|no known conversion" }
44 void
45 foo (bar yylval, bar *yyvsp)
47   nnyacc::assign(yylval.valueList, yyvsp[0].valueList);// { dg-error "no matching|rvalue" }