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/] [gcc.c-torture/] [execute/] [20050215-1.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR middle-end/19857 */
2
 
3
typedef struct { char c[8]; } V
4
#ifdef __ELF__
5
  __attribute__ ((aligned (8)))
6
#endif
7
  ;
8
typedef __SIZE_TYPE__ size_t;
9
V v;
10
void abort (void);
11
 
12
int
13
main (void)
14
{
15
  V *w = &v;
16
  if (((size_t) ((float *) ((size_t) w & ~(size_t) 3)) % 8) != 0
17
      || ((size_t) w & 1))
18
    {
19
#ifndef __ELF__
20
      if (((size_t) &v & 7) == 0)
21
#endif
22
        abort ();
23
    }
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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