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/] [pta-ptrarith-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-ccp -fdump-tree-alias" } */
3
 
4
extern void abort (void);
5
struct X {
6
  int *p;
7
  int *q;
8
  int *r;
9
};
10
int __attribute__((noinline))
11
foo(int i, int j, int k, int off)
12
{
13
  struct X x;
14
  int **p, *q;
15
  x.p = &i;
16
  x.q = &j;
17
  x.r = &k;
18
  p = &x.q;
19
  p += 1;
20
  /* *p points to { k } */
21
  q = *p;
22
  return *q;
23
}
24
 
25
/* { dg-final { scan-tree-dump "q_., points-to vars: { k }" "alias" } } */
26
/* { dg-final { cleanup-tree-dump "alias" } } */

powered by: WebSVN 2.1.0

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