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-5.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 cprop on different fields of same type structs.  */
7
 
8
struct s
9
{
10
  char d;
11
  int a, b;
12
  double m;
13
};
14
 
15
void foo2 (struct s*  r, struct s*  p)
16
{
17
  r->a = 0;
18
  p->b = 1;
19
  r->a++;
20
  p->b++;
21
  if (r->a != 1)
22
    link_error ();
23
  if (p->b != 2)
24
    link_error ();
25
}
26
 
27
/* There should be no link_error calls.  */
28
/* { dg-final { scan-tree-dump-times "link_error" 0 "optimized" { xfail *-*-* } } } */
29
/* { 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.