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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [inline-3.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-einline" } */
3
/* { dg-add-options bind_pic_locally } */
4
 
5
#include 
6
 
7
void foo(const char *s);
8
 
9
void
10
inline_me (char *x)
11
{
12
  foo(x);
13
}
14
 
15
static void
16
inline_me_too (char *x)
17
{
18
  foo(x);
19
}
20
 
21
int main(int argc, char **argv)
22
{
23
  std::for_each (argv, argv + argc, inline_me);
24
  std::for_each (argv, argv + argc, inline_me_too);
25
}
26
 
27
/* { dg-final { scan-tree-dump-times "Inlining void inline_me\\(" 1 "einline"} } */
28
/* { dg-final { scan-tree-dump-times "Inlining void inline_me_too\\(" 1 "einline"} } */
29
/* { 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.