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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [align2.C] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/10179
2
 
3
struct __attribute((aligned(__alignof(double)))) A
4
{ /* empty */ };
5
 
6
struct T : public A
7
{
8
  char c;
9
};
10
 
11
template struct StaticAssert;
12
template<> struct StaticAssert {};
13
 
14
StaticAssert<__alignof(T) == __alignof(double)> d;

powered by: WebSVN 2.1.0

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