OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/trunk/gnu-src/gcc-4.2.2/gcc/testsuite/g++.old-deja/g++.bob
    from Rev 149 to Rev 154
    Reverse comparison

Rev 149 → Rev 154

/template3.C
0,0 → 1,49
// { dg-do assemble }
// prms-id: 9979
 
template < class Referencee >
class Referencer
{
public:
Referencer() {}
};
 
template <class T>
class List
{
public:
List() {}
};
 
template<class T, class KEY>
class Dictionary
{
public:
Dictionary() : i_buckets (new List<T>[1234]) {}
~Dictionary() { delete [] i_buckets; }
 
List<T> * i_buckets;
};
 
class Exchangeable {};
class ExchangeableHandle {};
 
class ExchangeableList
: public Dictionary<Referencer<Exchangeable>, ExchangeableHandle>
{
public:
ExchangeableList(int size=0);
};
 
class ObjectExchange
{
public:
ObjectExchange() {};
 
ExchangeableList i_theWatchList; // Instruments being monitored
};
 
int
main()
{
}
template3.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: template4.C =================================================================== --- template4.C (nonexistent) +++ template4.C (revision 154) @@ -0,0 +1,22 @@ +// { dg-do run } +// prms-id: 10166 + +template +class B { + public: + int f() { + for(int x=0;x<10;x++) { + continue; + return 1; + } + return 0; + } + private: + A w; +}; + +int +main() { + B c; + return c.f(); +}
template4.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: array1.C =================================================================== --- array1.C (nonexistent) +++ array1.C (revision 154) @@ -0,0 +1,6 @@ +// { dg-do assemble } +char *stuff() { + char array[10]; // { dg-warning "" } + + return array; +}
array1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: array2.C =================================================================== --- array2.C (nonexistent) +++ array2.C (revision 154) @@ -0,0 +1,4 @@ +// { dg-do assemble } +extern const int a[]; +extern const int a[]; +extern const int a[];
array2.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: nested1.C =================================================================== --- nested1.C (nonexistent) +++ nested1.C (revision 154) @@ -0,0 +1,16 @@ +// { dg-do assemble } + +struct A { + struct B { + typedef long T; + int i; + }; +}; +struct C { + struct B { + typedef float T; + int i; + }; +}; + +C::B::T a;
nested1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: cond1.C =================================================================== --- cond1.C (nonexistent) +++ cond1.C (revision 154) @@ -0,0 +1,31 @@ +// { dg-do assemble } +// prms-id: 9866 +class TChar + { +public: + explicit inline TChar(unsigned int aChar); + inline operator unsigned int() const; +private: + unsigned int iChar; + }; +inline TChar::TChar(unsigned int aChar) + : iChar(aChar) + {} +inline TChar::operator unsigned int() const + {return(iChar);} + +class TDes8 + { +public: + inline const unsigned char &operator[](int anIndex) const; + const unsigned char &AtC(int anIndex) const; + }; + +inline const unsigned char &TDes8::operator[](int anIndex) const + {return(AtC(anIndex));} + + +void doExponent(TDes8 &aDigBuf) + { + 2 ? TChar(aDigBuf[2]) : '0'; + }
cond1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: extern_C.C =================================================================== --- extern_C.C (nonexistent) +++ extern_C.C (revision 154) @@ -0,0 +1,9 @@ +// { dg-do assemble } +extern "C" { + class A { + public: + void a(); + }; +} + +void A::a() {}
extern_C.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: static1.C =================================================================== --- static1.C (nonexistent) +++ static1.C (revision 154) @@ -0,0 +1,12 @@ +// { dg-do assemble } +class A { + public: + static int a; +}; + +class B : public A { + public: + static int b; +}; + +int B::a; // { dg-error "" }
static1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: incomplete-cast1.C =================================================================== --- incomplete-cast1.C (nonexistent) +++ incomplete-cast1.C (revision 154) @@ -0,0 +1,17 @@ +// { dg-do assemble } +// prms-id: 5274 +class VHDLIdentifier; + +class VHDLPackageProtoRep { +public: + int thing(); +private: + virtual VHDLIdentifier &actual_name() ; +}; +extern void form(const char *format, ... ); +int +VHDLPackageProtoRep::thing() +{ + form("package `%s'", (char *)actual_name()); // { dg-error "" } can't convert from incomplete type + return 0; +}
incomplete-cast1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: packed1.C =================================================================== --- packed1.C (nonexistent) +++ packed1.C (revision 154) @@ -0,0 +1,18 @@ +// { dg-do run } +int +main() { + struct s + { + int a; + short b; + } __attribute__((packed)) t; + + if (sizeof (t) != (sizeof(int)+sizeof(short))) + { + return 1; + } + else + { + return 0; + } +}
packed1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: protected1.C =================================================================== --- protected1.C (nonexistent) +++ protected1.C (revision 154) @@ -0,0 +1,42 @@ +// { dg-do assemble } +class A { +public: + int i; + A(int j) : i(j){} +}; + +class B : protected A { +public: + B(int j) : A(j){} + void f(){ + A k(*this); + } +}; + +class C : protected B { +public: + C(int j) : B(j){} + void f(); + + void g(){ + A k(i); + } +}; + + +class D : public C { +public: + D(int w) : C(i) {} + void j() { A k(*this); } + void h() { i=3; } +}; + +void C::f() { + A k(*this); +} + +B b(3); +int +main() { + A *z = &b; // { dg-error "" } +}
protected1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: inherit1.C =================================================================== --- inherit1.C (nonexistent) +++ inherit1.C (revision 154) @@ -0,0 +1,25 @@ +// { dg-do assemble } +class A { +char str[10]; +public: + char* m1 () { return str;}; +}; + +class C : public A { +public: +}; + +class B : public A { +public: + char* m1 () { C::m1(); return ""; } // { dg-error "" } +}; + +int main () { +A a; +B b; +C c; + +a.m1(); +c.m1(); +b.m1(); +}
inherit1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: delete1.C =================================================================== --- delete1.C (nonexistent) +++ delete1.C (revision 154) @@ -0,0 +1,23 @@ +// { dg-do run } +// prms-id: 7330 +#include +int size = 0; + +struct X { + int x; + void *operator new[](size_t sz) throw() { + size = sz; + return 0; + } + void operator delete[] (void *vp) { ::operator delete(vp); } +}; +int main() +{ + X (*px) [10]; + + px = new X[5][10]; + + delete [] px; + + return 0; +}
delete1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: inherit2.C =================================================================== --- inherit2.C (nonexistent) +++ inherit2.C (revision 154) @@ -0,0 +1,24 @@ +// { dg-do assemble } +#include + +class A { +public: + void z(); + A(void) {} +private: + A(const A &) { abort(); } // { dg-error "private" } + const A& operator =(const A &) { abort(); } +}; + +class B : public A { // { dg-error "within" } +public: + B(void) {} +}; + +void f(B b) { +} + +void g() { + B h; + f(h); // { dg-error "synthesized|argument" } +}
inherit2.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: friend1.C =================================================================== --- friend1.C (nonexistent) +++ friend1.C (revision 154) @@ -0,0 +1,5 @@ +// { dg-do assemble } +class C { +public: + static friend int f(); // { dg-error "" } +};
friend1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: case1.C =================================================================== --- case1.C (nonexistent) +++ case1.C (revision 154) @@ -0,0 +1,14 @@ +// { dg-do assemble } +// prms-id: 9028 +class Foo; + +int main() +{ + int i=0; + switch (i) + { + case ((Foo *)0): // { dg-error "" } + case ((Foo *)1): // { dg-error "" } + break; + } +}
case1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: template1.C =================================================================== --- template1.C (nonexistent) +++ template1.C (revision 154) @@ -0,0 +1,27 @@ +// { dg-do assemble } +// prms-id: 10038 +template < class Referencee > +class Referencer +{ +public: + Referencer (Referencee const * pReferencee); +}; + +template +class Array +{ +public: + int addElement (T const & e); + int addElement (); +}; + +class ScenarioGroup; + +class ScenarioSet : public Array< Referencer > +{ + typedef Array< Referencer > arrayBase; + void addElement(ScenarioGroup *group) + { + arrayBase::addElement(group); + } +};
template1.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property Index: template2.C =================================================================== --- template2.C (nonexistent) +++ template2.C (revision 154) @@ -0,0 +1,49 @@ +// { dg-do assemble } +// prms-id: 10046 +template +class Array +{ +public: + T const & operator[] (int i) const; +}; + +class Referenceable {}; + +template < class Referencee > +class Referencer +{ +public: + operator Referencee *() const { return i_referencee; } + +protected: + Referencee* i_referencee; +}; + +class ScenarioGroup {}; + +class ScenarioSpace; + +class ScenarioSet : public Referenceable, + public Array< Referencer > +{ +public: + ScenarioSet& operator=(ScenarioSet const & s); +}; + +class ScenarioSpace : public Referenceable, + public Array< Referencer > +{ +}; + +class ScenarioSetNameSelector +{ +public: + bool operator () (ScenarioSpace &space) + { + int idx; + i_set = space[idx]; + return false; + } +private: + ScenarioSet *i_set; +};
template2.C Property changes : Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.