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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr44164.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 297 jeremybenn
struct X {
2
    struct Y {
3
        struct YY {
4
            struct Z {
5
                int i;
6
            } c;
7
        } bb;
8
    } b;
9
} a;
10
int __attribute__((noinline, noclone))
11
foo (struct Z *p)
12
{
13
  int i = p->i;
14
  a.b = (struct Y){};
15
  return p->i + i;
16
}
17
extern void abort (void);
18
int main()
19
{
20
  a.b.bb.c.i = 1;
21
  if (foo (&a.b.bb.c) != 1)
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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