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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-ccp-23.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
 
4
/* Make sure we propagate through POINTER_PLUS_EXPRs.  */
5
 
6
struct A {
7
  int i[2];
8
} a;
9
 
10
int foo (void)
11
{
12
  struct A *p = &a;
13
  int *q = (int *)p;
14
  int *x = q + 1;
15
  return *x;
16
}
17
 
18
/* { dg-final { scan-tree-dump "a.i\\\[1\\\]" "ccp1" } } */
19
/* { dg-final { cleanup-tree-dump "ccp1" } } */

powered by: WebSVN 2.1.0

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