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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [align1.C] - Rev 328

Go to most recent revision | Compare with Previous | Blame | View Log

// Test that __attribute__ ((aligned)) is preserved.
// The alignment used to be 64 but Cygwin does not
// support an alignment greater than 16 and COFF 
// not support an alignment greater than 4.

extern "C" int printf (const char *, ...);

typedef float at[4][4] __attribute__ ((aligned));

float dummy[4][4][15];

static volatile at a1[15];

float f1 __attribute__ ((aligned));

int
main (void)
{
  printf ("%d %d\n", __alignof (a1), __alignof (f1));
  return (__alignof (a1) < __alignof (f1));
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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