annotate gcc/testsuite/gcc.dg/inline-35.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* A function definition of an inline function following a static
kono
parents:
diff changeset
2 declaration does not make an inline definition in C99/C11 terms.
kono
parents:
diff changeset
3 PR 57574. */
kono
parents:
diff changeset
4 /* { dg-do compile } */
kono
parents:
diff changeset
5 /* { dg-options "-std=c99 -pedantic-errors" } */
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 static int n;
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 static inline int f1 (void);
kono
parents:
diff changeset
10 inline int f1 (void) { return n; }
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 static int f2 (void);
kono
parents:
diff changeset
13 inline int f2 (void) { return n; }
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 static inline int f3 (void);
kono
parents:
diff changeset
16 int f3 (void) { return n; }
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 static int f4 (void);
kono
parents:
diff changeset
19 int f4 (void) { return n; }