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

Subversion Repositories openrisc_me

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2 378 julius
/* { dg-options "-O1 -fdump-tree-optimized" } */
3 298 jeremybenn
 
4
struct S
5
{
6
  int a[1];
7
  int z[256];
8
};
9
 
10
void foo (struct S *s, int i)
11
{
12
  struct S disappear;
13
 
14
  disappear.a[i] = 12;
15
  *s = disappear;
16
}
17
 
18
/* { dg-final { scan-tree-dump-times "disappear" 0 "optimized"} } */
19
/* { 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.