OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23086.c] - Blame information for rev 300

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O -fdump-tree-optimized" } */
3
 
4
extern void link_error (void);
5
extern void abort (void);
6
 
7
int *t;
8
int __attribute__((noinline)) g(int *a)
9
{
10
  t = a;
11
  *a = 2;
12
}
13
 
14
void __attribute__((noinline)) f(int *a)
15
{
16
  int b;
17
  b = 1;
18
  g(&b);
19
  b = 2;
20
  *a = 1;
21
  if (b != 2)
22
    link_error();
23
}
24
 
25
int main(void)
26
{
27
  int t;
28
  f(&t);
29
  if (t != 1)
30
    abort ();
31
  return 0;
32
}
33
 
34
/* { dg-final { scan-tree-dump-not "link_error" "optimized" } } */
35
/* { 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.