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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [always_inline3.c] - Blame information for rev 315

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-Winline -O2" } */
3
int do_something_evil (void);
4
inline __attribute__ ((always_inline)) void
5
q2(void) /* { dg-message "sorry\[^\n\]*recursive" "" } */
6
{
7
  if (do_something_evil ())
8
    return;
9
  q2();                         /* { dg-message "sorry\[^\n\]*called from here" "" } */
10
  q2(); /* With -O2 we don't warn here, it is eliminated by tail recursion.  */
11
}

powered by: WebSVN 2.1.0

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