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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [tic6x/] [abi-align-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do run } */
2
 
3
/* common */
4
char c;
5
/* arrays must be 8 byte aligned, regardless of size */
6
char c_ary[1];
7
 
8
/* data */
9
char d = 1;
10
char d_ary[1] = {1};
11
 
12
int main ()
13
{
14
  if (((unsigned long)&c_ary[0] & 7) != 0)
15
    return 1;
16
  if (((unsigned long)&d_ary[0] & 7) != 0)
17
    return 1;
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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