OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [inline-17.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* Test __attribute__((gnu_inline)).  */
2
/* { dg-do compile } */
3
/* { dg-options "-std=c99" } */
4
/* { dg-final { scan-assembler "func1" } } */
5
/* { dg-final { scan-assembler-not "func2" } } */
6
/* { dg-final { scan-assembler "func3" } } */
7
/* { dg-final { scan-assembler "func4" } } */
8
 
9
#if __STDC_VERSION__ >= 199901L
10
# define inline __attribute__((gnu_inline)) inline
11
#endif
12
 
13
extern inline int func1 (void) { return 0; }
14
inline int func1 (void) { return 1; }
15
 
16
extern int func2 (void);
17
extern inline int func2 (void) { return 2; }
18
 
19
inline int func3 (void);
20
inline int func3 (void) { return 3; }
21
 
22
extern int func4 (void);
23
extern inline int func4 (void) { return 4; }
24
int func4 (void) { return 5; }

powered by: WebSVN 2.1.0

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