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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [ext/] [align1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that __attribute__ ((aligned)) is preserved.
2
// The alignment used to be 64 but Cygwin does not
3
// support an alignment greater than 16 and COFF
4
// not support an alignment greater than 4.
5
 
6
extern "C" int printf (const char *, ...);
7
 
8
typedef float at[4][4] __attribute__ ((aligned));
9
 
10
float dummy[4][4][15];
11
 
12
static volatile at a1[15];
13
 
14
float f1 __attribute__ ((aligned));
15
 
16
int
17
main (void)
18
{
19
  printf ("%d %d\n", __alignof (a1), __alignof (f1));
20
  return (__alignof (a1) < __alignof (f1));
21
}

powered by: WebSVN 2.1.0

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