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/] [forwprop-8.c] - Blame information for rev 816

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 "-O1 -fdump-tree-forwprop1 -W -Wall" } */
3
 
4
 
5
struct X { int a[5]; };
6
int foo(struct X *q)
7
{
8
  int (*pointer)[5] = &q->a;
9
  return (*pointer)[0];
10
}
11
 
12
 
13
/* We should have propragated &q->a into (*pointer).  */
14
/* { dg-final { scan-tree-dump-times "pointer" 0 "forwprop1"} } */
15
/* { dg-final { scan-tree-dump "->a\\\[0\\\]" "forwprop1" } } */
16
/* { dg-final { cleanup-tree-dump "forwprop1" } } */

powered by: WebSVN 2.1.0

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