URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
struct string
|
struct string
|
{
|
{
|
long long _M_p;
|
long long _M_p;
|
long long i;
|
long long i;
|
string();
|
string();
|
int begin();
|
int begin();
|
int end();
|
int end();
|
string(int, int);
|
string(int, int);
|
};
|
};
|
struct symbol
|
struct symbol
|
{
|
{
|
int type;
|
int type;
|
string name;
|
string name;
|
long long raw_name;
|
long long raw_name;
|
long long demangled_name;
|
long long demangled_name;
|
long long version_name;
|
long long version_name;
|
int version_status;
|
int version_status;
|
int status;
|
int status;
|
void init();
|
void init();
|
};
|
};
|
void symbol::init() { name = string(); }
|
void symbol::init() { name = string(); }
|
struct pair
|
struct pair
|
{
|
{
|
symbol first;
|
symbol first;
|
symbol second;
|
symbol second;
|
pair(const symbol& __a, const symbol& __b) : first(__a), second(__b) { }
|
pair(const symbol& __a, const symbol& __b) : first(__a), second(__b) { }
|
};
|
};
|
struct vector
|
struct vector
|
{
|
{
|
void push_back(const pair& __x);
|
void push_back(const pair& __x);
|
};
|
};
|
/* This ends up with two RHS deref copies, and we need to get the offsets right on them. */
|
/* This ends up with two RHS deref copies, and we need to get the offsets right on them. */
|
void f(vector incompatible)
|
void f(vector incompatible)
|
{
|
{
|
symbol base;
|
symbol base;
|
incompatible.push_back(pair(base, base));
|
incompatible.push_back(pair(base, base));
|
}
|
}
|
|
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.