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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "" }
2
 
3
struct a {
4
        int x;
5
};
6
 
7
struct b {
8
        int x;
9
        int y;
10
};
11
 
12
struct foo {
13
        union {
14
                struct a a;
15
                struct b b;
16
        } u;
17
};
18
 
19
int main(void)
20
{
21
        struct foo bar = { u: { b: { x: 0, y: 0, }}};
22
        (void)bar;
23
        return 0;
24
}

powered by: WebSVN 2.1.0

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