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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [union-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/15783 */
2
/* Origin: Paul Pluzhnikov <ppluzhnikov@charter.net> */
3
 
4
/* This used to ICE on SPARC 64-bit because the back-end was
5
   returning an invalid construct for the return value of fu2.  */
6
 
7
/* { dg-do compile } */
8
 
9
union u2 {
10
    struct
11
    {
12
        int u2s_a, u2s_b, u2s_c, u2s_d, u2s_e;
13
    } u2_s;
14
    double u2_d;
15
} u2a;
16
 
17
union u2 fu2();
18
 
19
void unions()
20
{
21
    u2a = fu2();
22
}

powered by: WebSVN 2.1.0

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