URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
#include "20090311-1.h"
|
#include "20090311-1.h"
|
|
|
struct A {
|
struct A {
|
enum { UNO, DOS, TRES } f1_;
|
enum { UNO, DOS, TRES } f1_;
|
int x;
|
int x;
|
};
|
};
|
|
|
struct B;
|
struct B;
|
|
|
extern struct B x[];
|
extern struct B x[];
|
|
|
struct C {
|
struct C {
|
int x;
|
int x;
|
struct B *p;
|
struct B *p;
|
float d;
|
float d;
|
};
|
};
|
|
|
extern A a;
|
extern A a;
|
extern B b;
|
extern B b;
|
extern bool flag;
|
extern bool flag;
|
extern C c;
|
extern C c;
|
|
|
int foo()
|
int foo()
|
{
|
{
|
if (!flag)
|
if (!flag)
|
return a.x - c.x;
|
return a.x - c.x;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.