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

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/gdb-5.0/gdb/testsuite/gdb.hp/gdb.objdbg/objdbg01
    from Rev 107 to Rev 1765
    Reverse comparison

Rev 107 → Rev 1765

/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();
};
/x1.cc
0,0 → 1,25
#include <stdio.h>
#include "x3.h"
 
extern void foo();
 
extern int acomm;
 
int main3()
{
return 1;
}
 
int main2()
{
return 0;
}
 
int main()
{
acomm = 1;
(new Info<PP>)->p(new PP);
foo();
 
return 0;
}
/x2.cc
0,0 → 1,14
#include "x3.h"
#include <stdio.h>
 
int acomm;
 
void PP::print()
{
printf("In PP::print()\n");
}
 
void QQ::print()
{
printf("In QQ::print()\n");
}
/x3.cc
0,0 → 1,7
#include "x3.h"
 
void foo()
{
(new Info<PP>)->p(new PP);
(new Info<QQ>)->p(new QQ);
}

powered by: WebSVN 2.1.0

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