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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23086.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 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.