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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr24117.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
 
4
typedef struct  {
5
  int x;
6
  int z;
7
} Foo_t;
8
 
9
char *xm;
10
void bar(void);
11
 
12
void foo(void)
13
{
14
  Foo_t x;
15
  x.x = 1;
16
  x.z = 2;
17
  xm = (char *)&x;
18
  bar();
19
  /* We can't propagate x.z past bar, so this link_error should still be there.  */
20
  if (x.z != 2)
21
    link_error ();
22
}
23
/* { dg-final { scan-tree-dump-times "link_error" 1 "optimized"} } */
24
/* { 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.