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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
 
4
 
5
struct a
6
{
7
  char a1;
8
};
9
 
10
int *aa;
11
 
12
void g(int *a)
13
{
14
  aa = a;
15
  *a = 2;
16
}
17
 
18
int t(int i, struct a *b)
19
{
20
  g(&i);
21
  b->a1 = 1;
22
  i = 2;
23
  if (b->a1 != 1)
24
    link_failure ();
25
}
26
int main(void)
27
{
28
  struct a b;
29
  t(1, &b);
30
  return 0;
31
}
32
 
33
 

powered by: WebSVN 2.1.0

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