OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /openrisc/tags/gnu-src/gdb-6.8/pre-binutils-2.20.1-sync/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg01
    from Rev 157 to Rev 223
    Reverse comparison

Rev 157 → Rev 223

/x3.h
0,0 → 1,22
 
template <class T>
class Info {
public:
void p(T *x);
};
 
template <class T>
void Info<T>::p(T *x)
{
x->print();
}
 
class PP {
public:
void print();
};
 
class QQ {
public:
void print();
};
x3.h 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: x1.cc =================================================================== --- x1.cc (nonexistent) +++ x1.cc (revision 223) @@ -0,0 +1,25 @@ +#include +#include "x3.h" + +extern void foo(); + +extern int acomm; + +int main3() +{ + return 1; +} + +int main2() +{ + return 0; +} + +int main() +{ + acomm = 1; + (new Info)->p(new PP); + foo(); + + return 0; +} Index: x2.cc =================================================================== --- x2.cc (nonexistent) +++ x2.cc (revision 223) @@ -0,0 +1,14 @@ +#include "x3.h" +#include + +int acomm; + +void PP::print() +{ + printf("In PP::print()\n"); +} + +void QQ::print() +{ + printf("In QQ::print()\n"); +} Index: x3.cc =================================================================== --- x3.cc (nonexistent) +++ x3.cc (revision 223) @@ -0,0 +1,7 @@ +#include "x3.h" + +void foo() +{ + (new Info)->p(new PP); + (new Info)->p(new QQ); +}

powered by: WebSVN 2.1.0

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