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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [inline-17.c] - Blame information for rev 750

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

Line No. Rev Author Line
1 689 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.