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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [align-1.c] - Rev 154

Compare with Previous | Blame | View Log

/* PR java/10145
   Test that requesting an alignment of 1 does not increase the alignment
   of a long long field.
 
   { dg-do run }
   { dg-options "" }
*/
 
extern void abort (void);
 
struct A
{
  char c;
  long long i;
};
 
struct B
{
  char c;
  long long i __attribute ((__aligned__ (1)));
};
 
int main ()
{
  if (sizeof (struct A) != sizeof (struct B))
    abort ();
  return 0;
}
 

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.