URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR c++/17743
|
// PR c++/17743
|
|
|
template
|
template
|
struct X {
|
struct X {
|
typedef char layout_type[sizeof(T)]
|
typedef char layout_type[sizeof(T)]
|
__attribute ((aligned(__alignof(double))));
|
__attribute ((aligned(__alignof(double))));
|
layout_type data;
|
layout_type data;
|
};
|
};
|
|
|
template
|
template
|
struct Y {
|
struct Y {
|
typedef char layout_type[sizeof(T)]
|
typedef char layout_type[sizeof(T)]
|
__attribute ((aligned(__alignof(T))));
|
__attribute ((aligned(__alignof(T))));
|
layout_type data;
|
layout_type data;
|
};
|
};
|
|
|
template
|
template
|
struct Z {
|
struct Z {
|
typedef char layout_type[sizeof(T)]
|
typedef char layout_type[sizeof(T)]
|
__attribute ((aligned(__alignof(T))));
|
__attribute ((aligned(__alignof(T))));
|
struct Z2 {
|
struct Z2 {
|
layout_type data;
|
layout_type data;
|
} in;
|
} in;
|
};
|
};
|
|
|
template
|
template
|
struct A;
|
struct A;
|
|
|
template
|
template
|
struct A {
|
struct A {
|
typedef char layout_type[sizeof(T)]
|
typedef char layout_type[sizeof(T)]
|
__attribute ((aligned(__alignof(T))));
|
__attribute ((aligned(__alignof(T))));
|
layout_type data;
|
layout_type data;
|
};
|
};
|
|
|
template struct StaticAssert;
|
template struct StaticAssert;
|
template<> struct StaticAssert {};
|
template<> struct StaticAssert {};
|
|
|
StaticAssert<__alignof(X) == __alignof(double)> d1;
|
StaticAssert<__alignof(X) == __alignof(double)> d1;
|
StaticAssert<__alignof(Y) == __alignof(double)> d2;
|
StaticAssert<__alignof(Y) == __alignof(double)> d2;
|
StaticAssert<__alignof(Z) == __alignof(double)> d3;
|
StaticAssert<__alignof(Z) == __alignof(double)> d3;
|
StaticAssert<__alignof(A) == __alignof(double)> d4;
|
StaticAssert<__alignof(A) == __alignof(double)> d4;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.