OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr38895.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fstrict-aliasing -fdump-tree-optimized" } */
3
 
4
struct A {
5
  int i;
6
  int j;
7
};
8
struct B {
9
  struct A a1;
10
  struct A a2;
11
};
12
struct C {
13
  struct A a1;
14
  struct B b;
15
};
16
int foo(struct C *c, struct B *b)
17
{
18
  c->a1.i = 1;
19
  b->a1.i = 0;
20
  return c->a1.i;
21
}
22
 
23
/* { dg-final { scan-tree-dump "return 1;" "optimized" } } */
24
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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