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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [attr-alwaysinline.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test always_inline attribute, which forces inlining of functions
2
   even at no optimization.  */
3
/* Origin: Aldy Hernandez <aldyh@redhat.com>.  */
4
/* { dg-do compile } */
5
/* { dg-options "-O0" } */
6
 
7
static inline int sabrina (void) __attribute__((always_inline));
8
 
9
static inline int sabrina (void)
10
{
11
  return 13;
12
}
13
 
14
int bar (void)
15
{
16
  return sabrina () + 68;
17
}
18
 
19
/* { dg-final { scan-assembler-not "sabrina" } } */

powered by: WebSVN 2.1.0

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