OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [align-1.c] - Blame information for rev 404

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR java/10145
2
   Test that requesting an alignment of 1 does not increase the alignment
3
   of a long long field.
4
 
5
   { dg-do run }
6
   { dg-options "" }
7
*/
8
 
9
extern void abort (void);
10
 
11
struct A
12
{
13
  char c;
14
  long long i;
15
};
16
 
17
struct B
18
{
19
  char c;
20
  long long i __attribute ((__aligned__ (1)));
21
};
22
 
23
int main ()
24
{
25
  if (sizeof (struct A) != sizeof (struct B))
26
    abort ();
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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