blob: ebbb8df2fe1a1d90ce9f9f995d9fcd2181d586fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* A function definition of an inline function following a static
declaration does not make an inline definition in C99/C11 terms.
PR 57574. */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */
static int n;
static inline int f1 (void);
inline int f1 (void) { return n; }
static int f2 (void);
inline int f2 (void) { return n; }
static inline int f3 (void);
int f3 (void) { return n; }
static int f4 (void);
int f4 (void) { return n; }
|