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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-pta-8.c] - Blame information for rev 706

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -fno-early-inlining -fipa-pta" } */
3
 
4
static int *__attribute__((noinline,noclone))
5
pass_me (int *p)
6
{
7
  return p;
8
}
9
 
10
/* When foo is inlined into main we have to make sure to adjust
11
   main()s IPA CLOBBERED set according to the decl remappings
12
   inlining does.  */
13
 
14
static int
15
foo (void)
16
{
17
  int a = 0;
18
  int *p = pass_me (&a);
19
  *p = 1;
20
  return a;
21
}
22
 
23
extern void abort (void);
24
 
25
int main()
26
{
27
  if (foo () != 1)
28
    abort ();
29
 
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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