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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20031106-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized" } */
3
 
4
extern void link_error (void);
5
 
6
/* Check for dead stores to an array.  */
7
 
8
void foo (int testarray[])
9
{
10
  testarray[0] = 0;
11
  testarray[0]++;
12
  if (testarray[0] != 1)
13
    link_error ();
14
}
15
 
16
/* There should be only one reference to "testarray" and one in the function header.  */
17
/* { dg-final { scan-tree-dump-times "testarray" 2 "optimized" } } */
18
 
19
/* There should be no link_error calls.  */
20
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized"} } */
21
/* { 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.