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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [compat/] [struct-complex-1_y.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-options "-O" } */
2
 
3
#ifdef __x86_64__
4
#include <stdlib.h>
5
#include "struct-complex-1.h"
6
 
7
void
8
bar(struct st x)
9
{
10
  if (x.s1 != 1 || x.s2 != 2
11
      || __real__ x.x != 2 || __imag__ x.x != 4)
12
    abort ();
13
}
14
 
15
void
16
foo(struct stc x)
17
{
18
  if (x.s1 != 1 || x.s2 != 2 || x.x.r != 2 || x.x.i != 4)
19
    abort ();
20
}
21
#else
22
int dummy_y;
23
#endif
24
 

powered by: WebSVN 2.1.0

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