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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-einline" } */
3
/* { dg-add-options bind_pic_locally } */
4
 
5
extern void inlined ();
6
void inline_me_too (void);
7
void inline_through_me (void (*ptr)(void));
8
void
9
inline_me (void)
10
{
11
  inlined();
12
}
13
 
14
void main(void)
15
{
16
  inline_through_me (inline_me);
17
  inline_through_me (inline_me_too);
18
}
19
void
20
inline_through_me (void (*ptr)(void))
21
{
22
  ptr();
23
}
24
 
25
void
26
inline_me_too (void)
27
{
28
  inlined();
29
}
30
/* { dg-final { scan-tree-dump-times "Inlining inline_me " 1 "einline"} } */
31
/* { dg-final { scan-tree-dump-times "Inlining inline_me_too " 1 "einline"} } */
32
/* { dg-final { cleanup-tree-dump "einline" } } */

powered by: WebSVN 2.1.0

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