URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/35056
|
// PR c++/35056
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
enum EBorderStyle { bla = 1 };
|
enum EBorderStyle { bla = 1 };
|
inline bool compare_ref(const unsigned int &t, const EBorderStyle &u)
|
inline bool compare_ref(const unsigned int &t, const EBorderStyle &u)
|
{ return t == u; }
|
{ return t == u; }
|
inline bool compare_val(const unsigned int t, const EBorderStyle u)
|
inline bool compare_val(const unsigned int t, const EBorderStyle u)
|
{ return t == u; }
|
{ return t == u; }
|
struct S {
|
struct S {
|
unsigned m_style : 4;
|
unsigned m_style : 4;
|
};
|
};
|
void call_ref (S *s, EBorderStyle v)
|
void call_ref (S *s, EBorderStyle v)
|
{ if (!compare_ref(s->m_style, v)) s->m_style = v; }
|
{ if (!compare_ref(s->m_style, v)) s->m_style = v; }
|
void call_val (S *s, EBorderStyle v)
|
void call_val (S *s, EBorderStyle v)
|
{ if (!compare_val(s->m_style, v)) s->m_style = v; }
|
{ if (!compare_val(s->m_style, v)) s->m_style = v; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.