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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [tmplattr3.C] - Diff between revs 301 and 338

Only display areas with differences | Details | Blame | View Log

Rev 301 Rev 338
// 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;
 
 

powered by: WebSVN 2.1.0

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